August 31st, 2002, 07:15 PM
Multiple Web Servers Through Gateway w/DNS
I have a domain name, lets say BIGDOMAIN.COM
which resolves to 126.96.36.199
DNS server on that server, called BEELZEBUB
IIS5 running on that server, which is fine
returns web pages great
BEELZEBUB also a gateway using Internet Connection Sharing to share internet to another computer, lets call that ARCHANGEL
so, BEELZEBUB has a second NIC card, IP 192.168.0.1
ARCHANGEL, through hub, set to 192.168.0.2
What I want to do is have ARCHANGEL run APACHE
so that someone could go to ARCHANGEL.BIGDOMAIN.COM
and BEELZEBUB will pass along the request
and APACHE will answer it
any ideas? i have tried hosts, alias, etc
BEELZEBUB running W2K Server with IIS5, DNS, WINS
ARCHANGEL running W2K Pro with Apache (latest)
September 1st, 2002, 03:07 AM
Well, this seems very familiar to me. The anwser is (sadly) it cannot be done with "conventional" methods. I'm not saying it's undoable, but I didn't get it to work out.
The Solution -
Apache is the best way to go here. Ditch IIS and use Apache, since its virtual domain support can do this for you.
In your Apache httpd.conf file, add these lines to the bottom:
Using that method, you can have as many whatever.BIGDOMAIN.com's you want just as long as your DNS server has A records for each of these "Virtual Domains", plus it saves you a machine
September 1st, 2002, 03:11 AM
but... but... there isnt a way?
so there isnt a way to forward http requests to another machine through some creative DNS solution? i was hoping to run both IIS and Apache so i could so some PHP/MySQL ASP/MS SQL2000 comparisons over a real internet framework.
September 1st, 2002, 03:56 AM
I can be done
This is one of the reasons why linux is so great. It can be done in 5 minutes by adding a route in the .1 routing table and adding a virtual interface in the.2 Nic to an external ip. Making a fire wall rule with iptables would be nice as well. I aknow linkux but have little experience with IIS.
September 1st, 2002, 04:56 AM
If I understand your questions (in terrible format: without comma and period; break lines when it's not supposed to; split paragraph at the wrong moment) correctly, you are trying make your ARCHANGEL running on LAN to be reachable to the outside world.
There are dozen ways to accomplish it whether you are running Apache on M$ or UNIX. Please do a search with the search keyword: rewriterule proxy under my username as it has been discussed and answered hundred of times.
BTW your idea of using ARCHANGEL.BIGDOMAIN.COM is a good start. Make sure people from the outside world can reach it though.