By Yakko Majuri
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
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:
find / -name ".htaccess"
If that is all clear, I’m going with:
Jarland
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.