httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Lavoie <>
Subject [users@httpd] help w/ VirtualHost config
Date Tue, 10 Sep 2002 19:30:11 GMT
Hello all,

A seemingly simple configuration is eluding me.. maybe because I'm not
understanding everything, maybe because something outside of apache isn't
working and I'm not seeing any error about it.

Anyway, first off, my configuration:
apache 1.3.26 on Linux (2.4 kernel),
static IP goes to my firewall/nat, which forwards :80 to the box (which is
a 192.168. IP on the LAN).
The static IP has a DNS name, and I also have a name which
resolves to the static IP.
The main configuration (before mucking with vhosts) correctly served pages
out of aliased directories, some of which were restricted for access to
other LAN 192.168 IP's.

What I'd *like* to work (but have not had complete success with thus far):
Have requests looking for the name use one of the aliased
directories as document root...
...but requests using the static IP, LAN IP, or ISP's DNS name to use the
main configuration.

So far, I can get it to do either of those, but only in mutual exclusion.

The only real changes I had done to my httpd.conf from when it was working
before was to add:

NameVirtualHosts *

<VirtualHost _default_:*>

<VirtualHost *>
ServerName <>

What I think I understood from the docs, FAQ, etc was that requests
matching would use that configuration, and everything
else would fall under the _default_, which with no enclosed info was just
the main server config.

Could someone please point out where I went wrong?

Much Appreciated,

(ps- sorry to repost, but I think posting middle of last night might have
gotten it lost in the morning traffic. ^_^ )

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