httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] help needed on multiple domain root directories ver 1.3.28 Win32
Date Thu, 25 Sep 2003 04:34:22 GMT
Webmaster wrote:
> I have the system32/drivers directory... there is no subdirectory off
> [...]
> I suspect that is an NT/2000/XP configuration thing. I'm running W98SE

Uhm, it seems so. A search revieled that it should be located in the Windows
directory, eg. c:\windows\hosts

> although the aim is to move it all perhaps a month or so to a Linux or
> QNX box but I'm assuming the configuration will be fairly similar.

Yes, the problem here is the clients rather than the server.

You could also consider running your own (local) DNS, so that your LAN
computers can resolve your hostnames to their private IPs. That can be
tricky business, though.

> In an email you wrote to someone else around this time I saw the
> and wonder if I can adapt it for my own use, perhaps, changing the port
> number to 80 presumably?

Not really the same problem. The problem for you is that you cannot use
hostnames, because they resolve to a public IP (which your router can't deal
with), and if you use the private IP, Apache cannot determine which host to
serve from.

An ugly workaround, could be something like this:

    Listen 80
    Listen 81
    Listen 82

    NameVirtualHost *

    <VirtualHost *:80>

    <VirtualHost *:80 *:81>

    <VirtualHost *:80 *:82>

I have not tested anything like that, but I think it would work. Hopefully
it would work normally from outside, but also enable you to access the other
sites from within your LAN by using its private IP and append the port
number (except for the first vhost). Like this (although the port is
redundant in the first case):  -->  -->  -->

If it seems cryptic, read the docs on Virtual Host matching:

You could also give the sites their own private IPs in a similar way.

Robert Andersson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message