Hi guys,

I’ve created a LXC to host Wordpress through proxmox. I can access my website with the internal IP address that has been given to it. Now I want to connect it to my bought domain 'www.example.com '. I portforwarded my internal IP address with port 80 and created an ‘A’ entry in Cloudflare to route my domain to my external IP address. Afterwards I made sure that I configured the nameservers from Cloudflare in my domain configuration.

But whenever I enter www.example.com it instantly goes to my internal IP address. If I use celular it also tries to do it but won’t be able to access my website (duh).

I’m not sure what I’m doing wrong. Whenever I type in my external IP address with port 80 it also goes towards my internal IP address.

When I use https://www.broadbandsearch.net/nslookup it also shows the configured nameservers from Cloudflare so that should be good.

Does anyone know what I might be doing wrong? Any help would be greatly appreciated.

  • Still-Snow-3743@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    This is just a WordPress quirk, you did everything ok. You can usually solve this but using wp-cli to do a global find and replace for your IP address with the new domain name on your WordPress install. Another option is setting some constants which are something like SITE_HOME (I’m not sure that’s right) in your wp-co fig.php file. Google “change domain WordPress” and it should point you in the right direction.