Somehow I have a problem with a rewrite rule.
Iam not shure what a HTTP_HOST variable looks like. (Think its exactly
what comes with the request)
Well I tried it with <virtualhost IP> (...) this Works with this
incomming HTTP_HOST and gets correctly redirected.
But when I apply the rewrite Rule. It seems not to read out the
vhost.map Or at least not match it.
In the Log it says (cache lookup OK: ... but with no key, and no val
(as you can see in the Log)
>From my understanding there has to be the matched value from the
HTTP_HOST in there (?)
but it does not match, though the entry in the list, and the requested
HTTP_HOST are exactly the same.
the vhost.map belongs to root and has chmod 644 like any other conf
file
redirect.log
init rewrite engine with requested uri applying pattern '^/(.*)' to uri
'/index.html'
cache lookup OK: map=vhost[txt] key= -> val=
RewriteCond: input='' pattern='^(/.*)$' => not-matched
httpd.conf
RewriteEngine on
RewriteLog /etc/apache/redirect.log
RewriteLogLevel 9
RewriteMap vhost txt:/etc/apache/vhost.map
#RewriteCond ${lowercase:%{HTTP_HOST}} ^(.+)$
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*) %1/$1
vhost.map
domain.xx /www/domain.xx
domain2.xx /www/domain2.xx
