Forum Moderators: phranque

Message Too Old, No Replies

setup 2 servers in one machine

using Apache2 and Verizon ActionTec router

         

jscjso

4:15 am on Aug 10, 2010 (gmt 0)

10+ Year Member



I have Apache2 running and support one website server (mydomain1.com). I have Verizon ActionTec MI424WR v2 router. My computer has Vista.

When I set up the current environment(one server), this is what I did to the router. I added a protocol and server port under a Specific internal address (192.168.1.125).

In the computer (vista), I went to START>>Control Panel>>Network and Sharing Center>>Manage Network Connections>> to assign 192.168.1.125 as the IP address of the computer.

Everything works fine. The traffic coming to the router is directed to the 192.168.1.125 and the Apache takes the traffic and works well.

Now my question is how do I add one more server (mydomain2.com) in the same computer with the same router.


Questions:
1. On the router, do I need to distinguish the two domains? How? Since all traffic will go to 192.168.1.125.
2. On the computer side, how to direct the traffic to each domain server.
3. On the Apache setup, how to distinguish the two servers? Do I build two Apache Group directories with two different names?


Any idea is welcome for me to try.

jdMorgan

4:04 pm on Aug 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You do not need a second IP address or a second instance of Apache.

Look into name-based virtual servers. There is a good tutorial at Apache.org.

Jim