I have an Ubuntu 14.04 server, which I have had set up for a fews years with little adjustments. On the server I have a directory Movies
which has a .htaccess file in it that requires authentication for viewing. Without touching the server or any files, the authentication from the .htaccess file in the /Movies
is now being applied to the root, /
and all of its subfolders. The .htaccess
file does not contain any BasicAuth (Only the file in the /Movies
directory.
How did this happen or more importantly, what can I do to fix this? The BasicAuth has worked great for years in the /Movies
folder with it not asking for authentication from the root or other folders. I have checked the .htaccess
and site config files and nothing has changed.
Here is the relevant chunk of the .htaccess file in question (/Movies/.htaccess
):
AuthType Basic
AuthName "Movies"
AuthUserFile /var/www/Movies/.htpasswd
Require valid-user
Satisfy any
Order deny,allow
Deny from all
Allow from env=ALLOWED
Allow from env=ALLOWED2