httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] mod_vhost_alias - last time, I promise
Date Fri, 20 Sep 2002 17:41:52 GMT
Mitch Vincent wrote:
 > Thanks for the info -- I just got back and tried it and get something
 > like this when using %-2+ :
 > /usr/site/www/www.example/
 > when requesting
 > What I think I want is something like
 > VirtualDocumentRoot /usr/site/www/%-1.%-2/%0
 > but that doesn't work since you can't combine those like that.
 > Is there something that will always give me the first two parts of the
 > host name ( the domain) no matter what is requested?

You mean the LAST two parts of the hostname, right?  (I read from left
to right.)

Yes, the example I gave you was slightly off.  But this is all covered
in the docs:
See the examples section in particular.
VirtualDocumentRoot /usr/site/www/%-2.0.%-1.0/%0


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message