All visitors need admin credentials to access website

February 18, 2015 1.2k views

Hi folks,

New person here.

I recently directed a domain (domain.com) 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 domain.com, 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?

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.

Have another answer? Share your knowledge.