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

August 25, 2014 1.9k views

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

How to fix It?

Thank you

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
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!