bgilbers's picture
Hello All, Pardon me if this has been covered before but I went through the forum and didn't see this issue. I'm having trouble with simple authorization between a .htaccess file and the .htpasswd file I'm pointing it toward. I've tried various locations and permissions and It will not work in Firefox or Internet Explorer. I've read the Apache .htaccess until I'm blue in the face but it will not work for me. I have the .htaccess in the directory I want to protect and am pointing it to the .htpasswd file in a directory outside of joomla and It just will not authenticate. If I remove the .htaccess file the directory works fine and if I move the .htpasswd file to a different location I get an error indicating it is messed up. When everything is in place it just keeps returning to the authorization prompt in an endless loop. I wanted to use the Directory directive but I'm not sure which Apache config file to put it in (apache2.confg or httpd.confg) Anyone else run into this problem? Thanks in advance. Ben
Jeremy Davis's picture

Between v13.0 and v14.0 there were numerous changes and security improvements. One of those was that the Apache default behaviour of the "AllowOverride" directive changed from "All" to "None".

To simply make your .htaccess file wokr again you'll need to explicitly set the "AllowOverride All" directive somewhere within your Apache config. If you are using a more-or-less default LAMP then you'll want to edit the default site (/etc/apache2/sites-available/000-default) to include that in the body (within the site declaration of that file). You'll need to restart Apache after that (service apache2 restart).

I hope that helps.

Add new comment