DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=26052>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26052





------- Additional Comments From [EMAIL PROTECTED]  2006-02-03 21:39 -------
Ok, so here is an example derived from the mass virtual hosts example using
mod_rewrite : 

dirty hack to set the proposed VIRTUAL_DOCUMENT_ROOT using mod_rewrite instead
of mod_vhost_alias : 
================================================================================


    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteLog /var/log/apache/somesite/vhosts-rewrite.log
        RewriteLogLevel 1
        RewriteMap lowercase int:tolower

        # skip global aliases
        RewriteCond %{REQUEST_URI} !/^icons/
        RewriteCond %{REQUEST_URI} !/^manual/

        RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.vhosts\.somesite$
        RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
        RewriteRule ^([a-z0-9-]+)\.vhosts\.somesite/(.*)$
/www/vhosts.somesite/$1/$2 [C,E=VIRTUAL_DOCUMENT_ROOT:/www/vhosts.somesite/$1]
    </IfModule>
================================================================================

and we get : 
SERVER_NAME = test.vhosts.somesite
DOCUMENT_ROOT = /www/vhosts.somesite 
(this was configured in a virtualhost containing the above)
VIRTUAL_DOCUMENT_ROOT = /www/vhosts.somesite/test
(by mod_rewrite)



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to