I have an apache2 server that is behind a firewall. The external address is 24.89.xxx.xxx and the internal address is 10.10.58.1
The server's hostname is 'myhost'. I don't have a DNS entry for the 24.89.xxx.xxx address because it's not live yet. The domain name that will resolve to it is currently in use for the existing site.
I would like the web-dev team to be able to access the site via the 24.89.xxx.xxx address. However, whenever they view the site, all the URLs get the local hostname inserted into them.
<a href="index.php?id=9">Link</a> produces a URL of
http://myhost/index.php?id=9 However, I would like it to produce a URL of
Apache is installed on Debian Lenny. I'm using the "default" site. I've tried variations of setting the NamedVirtualHost to the IP, ServerName to the IP, UseCanonicalName off, VirualHost, etc... Everything I do produces no change whatsoever. Yes, I'm reloading the config each time.
I've also tried cutting out the firewall, and I get the same result. I've also made a bunch of changes to the /etc/hosts file.
127.0.0.1 localhost 10.10.58.1 myhost 24.89.xxx.xxx www.inusedomain.org