Forum Moderators: phranque

Message Too Old, No Replies

rewrite with virtualdocumentroot

         

matt2735

8:45 am on Oct 31, 2006 (gmt 0)

10+ Year Member



I currently have the following virtualhost which is up and running:

<VirtualHost *:80>
VirtualDocumentRoot "/apache/domains/%-2.0.%-1/%-3+/htdocs"
</VirtualHost>

I'm trying to get the following rewrite working:

RewriteRule ^/images/(.*) /apache/common/<domain.com>/images/$1

Is there a way to generate the "domain.com" portion of the path based on client request like "virtualdocumentroot" does?

coopster

1:02 am on Nov 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, matt2735.

Why not use one of the server variables [httpd.apache.org]?