All visitors need admin credentials to access website

Posted February 18, 2015 2.2k views

Hi folks,

New person here.

I recently directed a domain ( to my website, which I host using DigitalOcean running Ubuntu WordPress on 14.04. While I was building this site, I would access it by going to the IP address (let’s call it 123.456.78.90/), and then be prompted with a log-in (I would enter admin and then a password and get in fine).

Now when anyone visits, all they say is that request for the log-in credentials of the server admin. I need to make that go away so people can access my site without knowing this info. How do I do this?

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.

Submit an Answer
2 answers

You can fully disable this prompt fairly easily. It is defined in a DirectoryMatch directive in /etc/apache2/apache2.conf (just look for the one with AuthType:Basic in it and delete the whole <DirectoryMatch> block). Once it has been removed, restart apache with:

service apache2 restart

You should no longer see the prompt.