-2

I am having problems serving my website online.

What I have tried and double-checked

  • I have a server running Virtualmin
  • My register has told me that the A and CNAME records have been propagated correctly.
  • I have made sure that the external IP is correct in my A record and in Virtualmin.
  • I can access the website locally via IP and via domain name.
  • I have forwarded ports 80 and 443 through both routers to the correct machine.
  • I have gotten an SSL certificate from Let's Encrypt for the A record and the www CNAME.

Strange behaviour

  • Trying to access the website via domain name gets me nowhere.
  • Browsing my external.IP:80 or external.IP:443 I get a warning message telling me that the "connection to this site is not secure: - Domain in certificate does not mathc the site domain. Visit site anyway?" I select yes and the site doesn't load anyways, but the URL changes to my local IP.
  • Accessing the site through via domain name in my local network will load it, but immediately change the url to the local IP.

Any ideas on what might be going wrong? I have run out of ideas. Thanks in advance.

Centaro
  • 23
  • 8
  • 1
    "Trying to access the website via domain name gets me nowhere" in what specific way? What happens? "Accessing the site through via domain name in my local network will load it, but immediately change the url to the local IP" isn't a DNS/SSL thing, but something in your code or configuration. Is this WordPress? – ceejayoz Aug 03 '23 at 15:27
  • Alright, found it in WordPress! Thank you for pointing me in the right direction! ⭐ – Centaro Aug 03 '23 at 16:04
  • I’m voting to close this question because SO is a programming Q&A platform and this question is not about programming. [What topics can I ask about here?](https://stackoverflow.com/help/on-topic) Please delete this. – Rob Aug 06 '23 at 10:29

1 Answers1

0

So, as @ceejayoz suggested, it was down to Wordpress.

I just had to change the URL under Settings > General.

Centaro
  • 23
  • 8