Forum OpenACS Q&A: virtual IPs, apache reverse proxy and aolserver...
But whenever I want to bind aolserver to port 80 of one of the new IP addresses the aolserver error log tells me that port 80 is already in use. I can only bind aolserver to the new IP address whenever I stop apache, but then apache won't start anymore...
Any experienced network admins???
$ netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN ...in this case ssh is listening on port 22 for all IPs. if you see 0.0.0.0:80 that probably means apache has taken port 80...
You have to configure a virtual server and make apache listen only on that specific address.
Take a look at the "Listen" directive.
A virtual host can look like this
ScriptAlias /cgi/ /usr/local/httpd/cgi-bin/
it will bind to port 80 everywhere. If you want to bind to just a specific address, use the following format:
See the apache docs - they are actually very nice to use. eg: http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen
As most DNS servers still have the old IPs registered I am currently using apache to rewrite all connections from www.mydomain.com to MyNewIP. While Mozilla is presenting me the IP address in the URL input field at the top, IE is still showing www.mydomain.com?! Weird?
How could I make Mozilla also show www.mydomain.com and not the IP address?