Peter_Smith
New Pleskian
Hello,
Runing Plesk 12 on CentOS Apache/2.2.15. I'm able to view .htaccess and .htpasswd files on my sites in my browser. I've tried adding this to the .htaccess
, but it has no effect. I have another rule in the same .htaccess file:
And this *does* work. So I know that the htaccess is being read.
In most default Apache configs I've seen, access to .htpasswd and .htaccess has been denied by default, and sure enough, when I check /etc/httpd/conf/httpd.conf:
Any idea what's going on? As far as I know httpd.conf hasn't been edited manually, and the rest of the httpd config files are all automatically generated by Plesk.
Runing Plesk 12 on CentOS Apache/2.2.15. I'm able to view .htaccess and .htpasswd files on my sites in my browser. I've tried adding this to the .htaccess
<Files .htpasswd>
Order allow,deny
Deny from all
</Files>
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
Order allow,deny
Deny from all
</Files>
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
, but it has no effect. I have another rule in the same .htaccess file:
<Files wp-login.php>
AuthUserFile /var/www/vhosts/blahblahblah.com/httpdocs/.htpasswd
AuthName "Private access"
AuthType Basic
require user blah
</Files>
AuthUserFile /var/www/vhosts/blahblahblah.com/httpdocs/.htpasswd
AuthName "Private access"
AuthType Basic
require user blah
</Files>
And this *does* work. So I know that the htaccess is being read.
In most default Apache configs I've seen, access to .htpasswd and .htaccess has been denied by default, and sure enough, when I check /etc/httpd/conf/httpd.conf:
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
Order allow,deny
Deny from all
Satisfy All
</Files>
Any idea what's going on? As far as I know httpd.conf hasn't been edited manually, and the rest of the httpd config files are all automatically generated by Plesk.