Re: [LUNI] virtual hosts on DHCP

From: A. Khan (knura@yahoo.com)
Date: Tue Mar 13 2001 - 11:23:26 CST

  • Next message: Richard Reina: "Re: [LUNI] Impossible Install on Thinkpad i 1300 1171 61u"

    --- Sten Turpin <sten@narnia.net> wrote:
    > Hey, all.
    >
    > I can't find info on what I'm trying to pull with my home PC.
    > Basically, I
    > want to have my webserver serve up subdomains, but I'm on a private
    > IP range with assigned by my firewall/NAT/DHCP box, so I'm having
    > trouble
    > figuring out what to use for the VirtualHost section of my
    > httpd.conf. As
    > it is now, I've got
    >
    > NameVirtualHost my.private.ip.addy
    >
    > <Virtual Host my.private.ip.addy>
    > ServerName mydomain.org
    > DocumentRoot /www
    > </VirtualHost>
    >
    > <VirtualHost my.private.ip.addy>
    > ServerName subdomain.mydomain.org
    > DocumentRoot /www/subdomain
    > </VirtualHost>
    >
    > I picked up a D-Link home gateway, so it's not a box I can
    > reconfigure to
    > use a static private IP; even if it were, do I use the private IP or
    > the
    > public? I've tried it both ways, to no avail.
    >
    > If I hit mydomain.org or subdomain.mydomain.org, I get
    > /www/index.html.

    It is not clear whether you want to present the virtual hosts on the
    WAN or just to your LAN. For the latter case, you'll have to setup a
    DNS (bind) on a system in your LAN. Read the DNS-HOWTO.

    On the WAN side it would require a similar DNS setup served by a DNS
    server on the Internet plus port forwarding on the NAT box, if you had
    a static WAN IP. This may not be easy with the dynamic nature of your
    WAN IP.

    --
    Arun K.
    

    __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -=- Linux Users Of Northern Illinois: General Discussion Mailing list. For unsubscription, archives, and announcements only see http://luni.org



    This archive was generated by hypermail 2b29 : Tue Mar 13 2001 - 11:23:51 CST

  •