When I add an empty .htaccess
file to server root (touch .htaccess
) I get a 403 error. The samme error appears no matter what I put in the file (I've tried specifying <LIMIT>
directives etc).
Example of auth directive I've tried:
<Limit GET POST>
Order deny,allow
AuthType Basic
AuthUserFile /path/to/file
AuthName "Tits for Haiti etc"
Require valid-user
</Limit>
Whats the deal?
If the webserver cannot read the file you will get this problem. Make sure that the webserver can read the file by setting the ownership and permissions on the .htaccess appropriately.