HTTPS shows my correct domain, HTTP shows the IP of my webserver

Hi All,

I have followed this tutorial to install LAMP, secure with SSL and install wordpress. And have completed all the prerequisites.

I have it all set up on the basic webserver that digital ocean offers.

I have set up all my domains and virtual hosts.

I’ve set the url in the wordpress settings.

However when i go to the it shows the ip of my web server. When i go to, it shows the correct url.

Im not sure what setting i need to change so that the url for http is ?

Any ideas?


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

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.

Accepted Answer

I managed to “fix” this.

Google chrome had cached the website as my IP address… I opened up chrome in incognito mode and it started to come up as my URL.

So it was working all along.


Hey friend,

Great question! What this means is that traffic over port 80 is being redirected to the site IP specifically. If you haven’t configured this in your web server configuration, then it is being done by the web application which is listening at that location.

Every time I’ve heard this story it has been about Wordpress, so forgive me if I make an incorrect assumption. However, if I assume correctly that it is, you would need to follow the steps here to make sure that Wordpress does not have your droplet IP listed as the site address in any of the places that it stores it: