All pastes #389895 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-11 00:55 UTC
rendered paste body
RewriteCond   ${lowercase:%{HTTP_HOST}|NONE}  ^(.+)$
#
#   4. lookup this hostname in vhost.map and
#      remember it only when it is a path
#      (and not "NONE" from above)
RewriteCond   ${vhost:%1}  ^(/.*)$
#RewriteCond   ${vhost:%1}  ^(.*)$
#
#   5. finally we can map the URL to its docroot location
#      and remember the virtual host for logging puposes
#RewriteRule   ^/(.*)$   %1/$1  [E=VHOST:${lowercase:%{HTTP_HOST}}]
RewriteRule   ^(.*)$   %1$1  [E=VHOST:${lowercase:%{HTTP_HOST}}]