tracker
tracker copied to clipboard
Doc improvement - Setting the domain during setup breaks local installs of the WordPress image
During the TurnKey WordPress image setup, the installer prompts for a domain name. If running this image on any machine that doesn't have an A record pointing to it, the WordPress resulting WordPress site is unusable because all the links will point to the domain.
Specifically, I'm running the image within a virtual machine. I can connect just fine to the guest from the host using the IP address, but all the links are rewritten using the domain, which means that setting the domain to:
- a web URL redirects all links to that URL (which will give you 404s unless there's a public A record pointing to your virtual machine)
- 'localhost' (or any equivalent) will also fail because it'll redirect to the host's IP instead of the guest's IP
- the guest's IP will work as long as the hypervisor isn't assigning addresses using DHCP. If it is, then the website will break as soon as the hypervisor assigns a new IP address.
Most frustrating of all is that I can't find where the domain I specified during setup gets used, so I can't go to the daemon's config files to fix it so the website works.