httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Boorshtein <mboorsht...@yahoo.com>
Subject [users@httpd] Stop ReWrite Infinite Loops?
Date Mon, 14 Apr 2003 21:16:49 GMT
Hello,

I am trying to setup some rewriting, but I can't get out of an infinite
loop.  Here are my rules:

RewriteCond   %{HTTP_HOST}                 ^[^.]+\.server\.com$
RewriteCond %{REQUEST_URI} !^/var/www/hosts
RewriteRule   ^(.+)                        %{HTTP_HOST}$1          [C]
RewriteRule   ^([^.]+)\.server\.com(.*) /var/www/hosts/%{HTTP_HOST}/docs
[L]


And the logs show this:
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8269bb8/initial] (1) go-ahead with
/var/www/hosts/mlb.server.com/docs [OK]
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (2) init rewrite engine
with requested uri
/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (3) applying pattern
'^(.+)' to uri
'/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php'
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (4) RewriteCond:
input='mlb.server.com' pattern='^[^.]+\.server\.com$' => matched
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (4) RewriteCond:
input='/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php'
pattern='!^/var/www/hosts' => matched
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (2) rewrite
/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php
-> mlb.server.com/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (3) applying pattern
'^([^.]+)\.server\.com(.*)' to uri
'mlb.server.com/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php'
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (2) rewrite
mlb.server.com/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php
-> /var/www/hosts/mlb.server.com/docs
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (2) local path result:
/var/www/hosts/mlb.server.com/docs
127.0.0.1 - - [14/Apr/2003:17:06:32 --0400]
[mlb.server.com/sid#809ceb0][rid#8275be8/subreq] (1) go-ahead with
/var/www/hosts/mlb.server.com/docs [OK]

I thought the REQUEST_URI is what I need to test.  Am I missing
something?
-- 
Marc Boorshtein <mboorshtein@yahoo.com>

Mime
View raw message