httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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/www.example.com/
 >
 > when requesting www.example.com
 >
 > 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:
http://httpd.apache.org/docs-2.0/mod/mod_vhost_alias.html
See the examples section in particular.
Try:
VirtualDocumentRoot /usr/site/www/%-2.0.%-1.0/%0

Joshua.



---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message