Having followed all the necessary steps to set up my domain in Digital Ocean, the domain name now points to the IP address as it should. However, my IP address is the one visible in the URL, not the domain. I understand this is a common issue with WordPress, but I am not using WordPress. I have uploaded all my files via FTP.
I have attempted changing configurations in sites-available
, sites-enabled
and other default configurations, still to no luck. I have been using port 443 for the website.
How could I solve this? Thanks in advance.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Ok, so I still have not managed to figure this out and I have discovered another issue. The website seems to work fine for people in my Wi-Fi network, but does not work on any other networks. I have looked online and cannot figure out any reason why this might be the case. See for yourself: yakkomajuri.com or 188.166.144.57:443/.
It works for me on all devices and all other in the same network - but no one from outside it. To people outside the network it shows the plain index.html file, but does not use any other files.
Let me try this again and see if I can do better :)
So here is what I gather to be the relevant variables:
So we know a redirect is happening. You did say it isn’t Wordpress but didn’t say that it is a static site, so I’m coming up with two possibilities:
If that is all clear, I’m going with:
Jarland
Hey friend,
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 one of the methods 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:
https://codex.wordpress.org/Changing_The_Site_URL
Jarland