Question

Domain asking for authentication login/password (like .htaccess or something)

Posted August 25, 2014 2k views

Domain asking for authentication login/password (like .htaccess or something).

How to fix It?

Thank you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Solved!

After changing in etc/apache2/apache2.conf

<DirectoryMatch ^.*/wp-admin/>
  AuthType Basic
  AuthName "Restricted Area"
  AuthUserFile /etc/apache2/.htpasswd
  Require valid-user
</DirectoryMatch>

to

#<DirectoryMatch ^.*/wp-admin/>
#  AuthType Basic
#  AuthName "Restricted Area"
#  AuthUserFile /etc/apache2/.htpasswd
#  Require valid-user
#</DirectoryMatch>

forgot to restart apache2

sudo service apache2 restart
Submit an Answer