this post was submitted on 26 Nov 2023
2 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 11 months 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.