#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    2
    Rep Power
    0

    Multiple Web Servers Through Gateway w/DNS


    I have a domain name, lets say BIGDOMAIN.COM
    which resolves to 24.123.123.34
    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)
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    6
    Rep Power
    0
    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:

    NameVirtualHost 24.123.123.34

    <VirtualHost 24.123.123.34>
    ServerAdmin bob@BIGDOMAIN.com
    DocumentRoot C:/apache/httpd/root/
    ServerName www.BIGDOMAIN.com
    </VirtualHost>

    <VirtualHost 24.123.123.34>
    ServerAdmin joe@BIGDOMAIN.com
    DocumentRoot C:/apache/httpd/cirox/
    ServerName ARCHANGEL.BIGDOMAIN.com
    </VirtualHost>

    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    2
    Rep Power
    0

    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.

    hmmmm.
    d.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    San Jose, CA
    Posts
    58
    Rep Power
    14

    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.

    Good Luck
    Thank you,

    Paul B Hepworth

    Questions & Answers http://www.lds.org
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo