globe: Fall: Endlosschleife

Beitrag lesen

##########################################

Auszug aus der vhost.conf

##########################################

<Directory "/my/path/htdocs">

Order allow,deny
  Allow from all

Options Indexes FollowSymLinks
  AllowOverride None

RewriteEngine On

# route / to handler
  RewriteRule ^/?$ /my/path/foobar/main.php [L]

# routy anything but real files to handler
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !^/?(styles|ads|js)
  # try to take out that recursion
  RewriteCond %{REQUEST_FILENAME} !main.php
  RewriteCond %{REQUEST_FILENAME} !/?my/path/foobar/main.php
  RewriteRule ^(.*)$ /my/Rodney/Projekte/Lakeparty/branches/templating/foobar/main.php [L]

</Directory>

##########################################

Auszug aus my.vhost_rewrite.log

##########################################

Rewrite in Ordnung

127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#931c50/initial] (2) init rewrite engine with requested uri /
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#931c50/initial] (1) pass through /
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#931c50/initial] (3) [perdir /my/path/htdocs/] strip per-dir prefix: /my/path/htdocs/ ->
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#931c50/initial] (3) [perdir /my/path/htdocs/] applying pattern '^/?$' to uri ''
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#931c50/initial] (2) [perdir /my/path/htdocs/] rewrite '' -> '/my/path/foobar/main.php'
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#931c50/initial] (1) [perdir /my/path/htdocs/] internal redirect with /my/path/foobar/main.php [INTERNAL REDIRECT]

Endlosschleife - nicht in Ordnung

127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (2) init rewrite engine with requested uri /my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (1) pass through /my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (3) [perdir /my/path/htdocs/] add path info postfix: /my/path/htdocs/my -> /my/path/htdocs/my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (3) [perdir /my/path/htdocs/] strip per-dir prefix: /my/path/htdocs/my/path/foobar/main.php -> my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (3) [perdir /my/path/htdocs/] applying pattern '^/?$' to uri 'my/path/foobar/main.php'
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (3) [perdir /my/path/htdocs/] add path info postfix: /my/path/htdocs/my -> /my/path/htdocs/my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (3) [perdir /my/path/htdocs/] strip per-dir prefix: /my/path/htdocs/my/path/foobar/main.php -> my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (3) [perdir /my/path/htdocs/] applying pattern '^(.*)$' to uri 'my/path/foobar/main.php'
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/my' pattern='!-d' => matched
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/my' pattern='!-f' => matched
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/my' pattern='!^/?styles' => matched
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/my' pattern='!main.php' => matched
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/my' pattern='!my/path/foobar/main.php' => matched
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (2) [perdir /my/path/htdocs/] rewrite 'my/path/foobar/main.php' -> '/my/path/foobar/main.php'
127.0.0.1 - - [10/Jan/2008:14:26:26 +0100] [my.vhost/sid#8aec30][rid#9369a0/initial/redir#1] (1) [perdir /my/path/htdocs/] internal redirect with /my/path/foobar/main.php [INTERNAL REDIRECT]