PDA

View Full Version : 2 computers, 2 webservers, 1 ip, 2 domain-names



Djuri
08-06-2004, 18:18
I have 2 computers which are both running Apache2 under FreeBSD
Now i've forwarded port 80 to the first PC (Internal IP: 192.168.1.30), so when you type http://server.djuri.nl (port 80) (pointed to my ip) you reach the first PC.

Now I have another PC (testserver with test versions like PHP5/MySQL5, Internal IP: 192.168.1.31), and i want it to be reachable under http://dev.djuri.nl (port 80) (also pointed to my ip).

Is it possible to do that, and if so, how to do it? :)

Oleg
09-06-2004, 06:26
You need to setup apache proxy on one of your PCs and forward requests based on hostname. See apache docs.