I'm running a server:
Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g
Without a .htaccess file, everyone can access the web content. However, I add a .htaccess file with the following content:
Allow from all
... and everyone gets 403 Forbidden errors on every page! The permissions on .htaccess are 640
. Shouldn't Allow from all
be the same as having no .htaccess file? What have I done wrong?
edit: same behaviour with the following .htaccess file:
Order Allow,Deny
Allow from all
Again, with no .htaccess file everything loads without a problem.
For me, the problem was indeed file permissions as per Itamake's comment, so I fixed it with: