I'm using an AWS EC2 micro instance to run a wordpress blog.
I've successfully mapped a subdomain to the Elastic IP for the micro instance. After a few minor changes, the URL I mapped to the Elastic IP (blog.example.com) opens up the wordpress home page but whenever I click on any of the wordpress links the domain changes to the AWS public DNS for that instance (http://ec2-123-45-678-910.compute-1.amazonaws.com/wordpress/).
How do I fix the URLs so that they all follow the subdomain I have setup?
I think that there's a setting in wordpress that forces the base address of links. Or you can rewrite the servername in webserver.
I used to following command to apply the host name change to the machine.
After that the URLs were fixed.
If using a Bitnami AMI, be sure to modify the
updateip
file in/opt/bitnami/
to something likeupdateip.orig
. This prevents the hostname from being changed on reboot.