httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Grace" <>
Subject [users@httpd] Problem w/ Windows & mod_rewrite
Date Wed, 09 Apr 2003 17:37:41 GMT
I'm having some problems with mod_rewrite and Apache2.0.44 for a mass
virtual hosting configuration testing on a WinXP box.  I have the server
configured on drive D:  and my hosting content is on drive C:  The
summary of the problem is that the rewrite condition prior to the
rewrite rule is not matching and the rewrite is not taking place.  Also,
it seems that if I include C:/ in either the entry or in the
RewriteRule pattern, a default DocumentRoot is prepended to the
resulting rewrite string.  Any help is greatly appreciated!
My httpd.conf file has the following in it..
ServerRoot "D:/servers/apache2.0.44/Apache2"
### Section 3: Virtual Hosts
#       Virtual Hosting is enabled via mod_rewrite using
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteMap vhost txt:/local/www/conf/
RewriteLog "c:/local/www/logs/rewrite.log"
RewriteLogLevel 6
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
RewriteCond ${vhost:%1} ^(C:/.*)$
RewriteRule ^/(.*)$ %1/htdocs/$1
My file has the following entry..   C:/local/www/
Output from the rewrite log is below..
(2) init rewrite engine with requested uri /index.html
(3) applying pattern '^/(.*)$' to uri '/index.html'
(4) RewriteCond: input='/index.html' pattern='!^/cgi-bin/' => matched
(5) map lookup OK: map=lowercase ->
(4) RewriteCond: input='' pattern='^(.+)$' => matched
(5) cache lookup OK: map=vhost[txt] -> val=
(4) RewriteCond: input=''pattern='^(/.*)$' => not-matched
(1) pass through /index.html

View raw message