Koozali.org: home of the SME Server

2 Servers, one IP

David P.

2 Servers, one IP
« on: August 02, 2002, 02:02:32 AM »
I am new to this whole server thing and this forum has been very helpful - hopefully you guys have some helpful info on my latest issue.

My GF and I each want to have our own web server connected through one static DSL IP.  She does web development so I don't want to mess with her work machine, I want my own to play with.

With one IP, and one router, is there a way to rout webpages for some domains to one machine and some to another?

I have e-smith 5.5 and she has Mac OS X Server.  Can I create a virtual domain and rout it over to a different machine on the local network?

Ideas?

Thanks!

David P.

chris meredith

Re: 2 Servers, one IP
« Reply #1 on: August 02, 2002, 04:37:04 AM »
Search around the Apache site and here for ProxyPass.  That should do what you need.

Andrei

Re: 2 Servers, one IP
« Reply #2 on: August 02, 2002, 11:51:47 PM »
I run 2 web servers over my DSL connection but what I did to was simply call my ISP support and request a second static IP address. It took all of 5 minutes and is only $2 extra per month. Don't know if this is right for you but it way simplified things for me.

Andrej Fercic

Re: 2 Servers, one IP
« Reply #3 on: August 05, 2002, 01:51:15 PM »
Use another port for WEB2 server  like 8080 from outside, then use PORT FORWARDING (on SME: I am running first WEB server on SME o port 80) and forward port 8080 to port 80 on a specified IP(lokal one with the second WEB server which can run on port 80 as well)

Your URL will be (from outside) http://your.server.dom:8080 and that's it.

I hope that I solved your problem :)

Cheers,

Andrej

newbiespy

Re: 2 Servers, one IP
« Reply #4 on: August 05, 2002, 09:17:20 PM »
You certainly can have one ip address and 100 servers.
can you give more specific details on your network
example you can use (without knowing your setup) would be:
yourdomain.com points to your esmith server on a dns
gfriends.com points to your esmith server on a dns

then on you esmith server create the virtual host to point yourdomain.com to your local web server and a virtual host that point the gfriends.com domain to her apple server ip address.

the big thing is the dns entrys for both domains point to the esmith server and then your virtual host redirects to the local server ip addresses

then when you hit yourdomain.com it hits the esmith server then redirects right to your machine!!!  Its very easy and very cool.  Post or email me if you have any other problems

Brian Spector

Re: 2 Servers, one IP
« Reply #5 on: August 12, 2002, 01:27:57 PM »
I have been trying to do this but I can not seem to get it to work.  Virtual domain pointing to my local machine running in server only mode at 192.168.0.3 and my other machine running the real domain at 192.168.0.1 and acting as gateway/firewall.

Ughhhh!  What am I doing wrong?

Thanks
Brian