25.12.2001 11:28 Павел [] ошибочка закралась в конфиг. Удаление дублирующихся слешей: RewriteRule (.*)/(/.*) [N] следует читать как RewriteRule (.*)/(/.*) $1$2 [N] |
26.12.2001 18:53 beeon [] На локальном компьютере под win98 создал виртуальный хост как описано в статье. Получается интересный результат при обращение к php файлам. Происходит зацикливание при их обработке модулем rewrite. Привожу вырезку из rewrite_log. Из нее все понятно. Что я делаю нетак или чего я непонимаю? В конфигурации записано, что html обрабатывать php. 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (2) init rewrite engine with requested uri / 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (3) applying pattern '(.*)/(/.*)' to uri '/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (3) applying pattern '^(.*/)\.(.*)' to uri '/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (3) applying pattern '^' to uri '/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (4) RewriteCond: input='d:/home/test/www/' pattern='-f' => not-matched 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (3) applying pattern '[^\/]$' to uri '/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (3) applying pattern '^' to uri '/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (4) RewriteCond: input='d:/home/test/www/' pattern='-d' => matched 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (4) RewriteCond: input='d:/home/test/www/index.html' pattern='-f' => matched 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (2) rewrite / -> /index.html 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (2) local path result: /index.html 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (2) prefixed with document_root to d:/home/test/www/index.html 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fc7a0/initial] (1) go-ahead with d:/home/test/www/index.html [OK] 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (2) init rewrite engine with requested uri /_php/php.exe/ 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (3) applying pattern '(.*)/(/.*)' to uri '/_php/php.exe/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (3) applying pattern '^(.*/)\.(.*)' to uri '/_php/php.exe/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (3) applying pattern '^' to uri '/_php/php.exe/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (4) RewriteCond: input='d:/home/test/www/_php/php.exe/' pattern='-f' => not-matched 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (3) applying pattern '[^\/]$' to uri '/_php/php.exe/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (3) applying pattern '^' to uri '/_php/php.exe/' 127.0.0.18 - - [26/Dec/2001:18:10:39 +0300] [test/sid#6650b0][rid#6fda18/initial/redir#1] (4) RewriteCond: input='d:/home/test/www/_php/php.exe/' pattern='-d' => not-matched и.т.д. и.т.п. |