I have 2 web-servers on diffrent hardware connected to a router who is connected to the internet.
There are two adresses:
When i connect to exampleserver1.com all is fine. (Router-config port-forwarding port 80 to webserver-1)
But when i try connect to exampleserver2.com i must route the traffic to webserver-2. Tried diffrent ports but apache refuse anything but port 80.
Tried to put this in httpd.conf file:
But it dosen't work. Am i missing something?
You have multiple domains going to the same IP and also want to serve multiple ports. By defining the ports in the "NameVirtualHost" tag, you can allow this to work. If you try using <VirtualHost name:port> without the NameVirtualHost name:port or you try to use the Listen directive, your configuration will not work.
Thanks in advance!
Running Apache 2.2 Ubuntu 10.04