My .htaccess file was working last year, and as far as I know I had not changed it. However, I am now getting the following error:
AuthType not allowed here
My .htaccess file looks like this:
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /pwd/.htpasswd
Require valid-user
In case it helps my main apache .conf file for this domain looks like this:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName subdomain.example.com
DirectoryIndex index.html index.php
DocumentRoot /var/sites/example.com/subdomain
LogLevel warn
ErrorLog /var/sites/example.com/log/error.log
CustomLog /var/sites/example.com/log/access.log combined
</VirtualHost>
Any ideas what the problem could be?