Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Stike

macrumors 65816
Original poster
Jan 31, 2002
1,017
17
Germany
Hello everyone!

I have a weird error which causes (I think) a loopback problem, thus I can't access my own website on the IP which is attached to the domain.

I have a fixated IP with a domain attached to it. I managed (don't even ask) to get an SSL certificate for it via Lets Encrypt. But now I need to renew the cert, and the certbot can't connect to the server on the same machine.

When I go to Safari and open mydomain.de, I get HTTP error code 400.
If any OTHER computer (different IP) opens the website, it is displayed correctly, with SSL.

So I tried to fix the 400 error:

Code:
$ sudo /usr/sbin/apachectl configtest
AH00112: Warning: DocumentRoot [/usr/usr/local/var/www] does not exist
Syntax OK
Now that is weird. The ServerRoot is set to "/usr". Where does the second /usr come from?!?!?

Additionally I have set up these properties:
Code:
<Directory /usr/local/var/www>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    allow from all
    require all granted
</Directory>
<Directory "/Users/stike/Sites/">
    Options Indexes FollowSymLinks MultiViews
    Require all granted
</Directory>

No additional /usr in there either.

How can I fix this loopback/error 400 problem?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.