httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelly Price <>
Subject [users@httpd] Strange problem with mod_vhost_alias
Date Tue, 02 Aug 2005 02:50:39 GMT
I'm having a strange problem with mod_vhost_alias here, which doesn't
match the documentation.

My intentions are to map these sample domains on one server to these
directories: => /home/hosts/stalag99_net/w/e/b/web/public_html/ => /home/hosts/stalag99_net/w/e/b/web/public_html
       OR /home/hosts/stalag99_net/_/_/_/_/public_html (if I'm reading
the docs right) => /home/hosts/dotsig_org/a/n/y/anydomain/public_html => /home/hosts/co_uk/c/a/n/canmephwar/public_html

In reality, I have like 8000 domains, mostly but
with,,,, etc in the mix.

The particular line:
VirtualDocumentRoot /home/hosts/%-2_%-1/%-3.1/%-3.2/%-3.3/%-3/public_html

In testing, using to report the actual file accessed at the end of the
log line...
LogFormat "%V %h %l %u %t \"%r\" %s %b %f" vcommon                              
CustomLog logs/access_log vcommon                                               

I get this in my access log (one per request, of course, all pointing locally): - - [01/Aug/2005:22:46:52 -0400] "GET /
HTTP/1.1" 403 290 /home/hosts/stalag99_net - - [01/Aug/2005:22:47:06 -0400] "GET /
HTTP/1.1" 403 286 /home/hosts/stalag99_net

It looks like it's cutting off past %-3.1 and beyond.  Changing to:

VirtualDocumentRoot /home/hosts/%0/public_html

works as usual.  

I think I've found a bug.  Apache 2.0.54, on a Gentoo Linux box.

Kelly "STrRedWolf" Price

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