This is for Ubuntu 8.10 Server
I’m not sure if this is an “Ubuntu Gotcha’ ” or not, but adding htaccess and htpasswd protection to folders was slightly different than other distro’s I’ve used.
Most distros have you edit /etc/apache2/apache2.conf or /etc/apache/httpd.conf and allow to appropriate folder access, like so:
<Directory "/www/">
AllowOverride All
</Directory>
This is NOT the file you edit with Ubuntu, you actually edit “/etc/apache2/sites-enabled/000-default” and use your AllowOverride in there. After you set that restart Apache your htaccess and htpasswd files should be seen and used now.
Like I said, I may be off on this, but I think this is one of those “Ubuntuisims” and I couldn’t find much documentation out there on it.
Hopefully this can help someone one day.
