httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Kruse" <>
Subject [users@httpd] mod_rewrite problems
Date Wed, 27 Nov 2002 09:10:52 GMT
Hey all,

I have a problemmet getting my rewrite rules to work correctly.
Here is my current ruleset:

RewriteEngine On
RewriteMap  lowercase  int:tolower
RewriteCond  %{REQUEST_URI}  !^/cgi-bin/
RewriteCond %{REQUEST_URI} ^/stats/
RewriteRule  ^/(.*)$ /hosts/${lowercase:%{SERVER_NAME}}/stats/$1
php_admin_value open_basedir "/hosts/./:/tmp:/usr/local/lib"
RewriteRule  ^/(.*)$  /hosts/${lowercase:%{SERVER_NAME}}/public_html/$1
RewriteCond   /hosts/${lowercase:%{HTTP_HOST}}     !-d
RewriteRule   ^(.*)$    /hosts/index.html
RewriteCond  %{REQUEST_URI}  ^/cgi-bin/
RewriteRule  ^/(.*)$  /hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1

My dir structure

My problem is, when I access http://some_domain/stats then it tries to fetch
the files from /public_html/stats/ but I only want it to fetch it from

Please help me with this problem



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message