httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Grace" <eric.gr...@ushostingservice.net>
Subject [users@httpd] Problem w/ Windows & mod_rewrite
Date Wed, 09 Apr 2003 17:37:41 GMT
Hello,
 
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 vhost.map 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 vhost.map
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteMap vhost txt:/local/www/conf/vhost.map
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 vhost.map file has the following entry..
 
dev.domainA.com   C:/local/www/dev.domain_a.com
 
 
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 key=dev.domain-a.com ->
val=dev.domain-a.com
(4) RewriteCond: input='dev.domain-a.com' pattern='^(.+)$' => matched
(5) cache lookup OK: map=vhost[txt] key=dev.domain-a.com -> val=
(4) RewriteCond: input=''pattern='^(/.*)$' => not-matched
(1) pass through /index.html
 
 
 
-eric
 
 

Mime
View raw message