I'm trying to add a
.htaccess file to a directory, everything works, the path to
.htpasswd is working fine.
My contents are:
AuthUserFile /root/passwords/apache2/.htpasswd AuthGroupFile /dev/null AuthName "VNstats" AuthType Basic <Limit GET POST> require valid-user </Limit>
/root/passwords/apache2 is chowned to
However it still refuses to show an authentication box.
I started troubleshooting, and found some tutorials to edit
apache2.conf and add
AllowOverride All. But everytime I do that, I get an error when reloading Apache2 that
AllowOverride All is not allowed there.
It is a clean apache2 install, do I need to enable some mods? Where can I add
AllowOverride All? What am I overlooking?
EDIT: I added this to httpd.conf:
<Directory /var/www/> AllowOverride All </Directory>