嗯,这是一种转发这,但到目前为止还没有人回答我的问题,所以我来这里了。
我正在使用 Apache/2.2.17 (Ubuntu) mod_fastcgi 和 php-fpm,我无法启用干净的 URL,因为网站返回内部服务器错误。我认为我的 .htaccess 设置有问题。同一台服务器包含不同虚拟主机下的 Wordpress,它运行正常。
这是一些相关信息,希望能够帮助找出问题。
我的虚拟主机包含:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /home/dowsin/public_html
FastCgiExternalServer /home/dowsin/public_html/php5.external -host 127.0.0.1:9000
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
Alias /usr/lib/cgi-bin/ /home/dowsin/public_html/
RewriteLog "/home/dowsin/public_html/rewrite.log"
RewriteLogLevel 9
<Directory "/home/dowsin/public_html">
allow from all
Options -Indexes
AllowOverride all
</Directory>
</VirtualHost>
.htaccess 包含
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
重写日志:
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/user -> user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'user'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/user' pattern='!-f' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/user' pattern='!-d' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (2) [perdir /home/dowsin/public_html/] rewrite 'user' -> 'index.php?q=user'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (3) split uri=index.php?q=user -> uri=index.php, args=q=user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (3) [perdir /home/dowsin/public_html/] add per-dir prefix: index.php -> /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (2) [perdir /home/dowsin/public_html/] trying to replace prefix /home/dowsin/public_html/ with /
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (5) strip matching prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (4) add subst prefix: index.php -> /index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b828f3c0/initial] (1) [perdir /home/dowsin/public_html/] internal redirect with /index.php [INTERNAL REDIRECT]
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8294ce8/initial/redir#1] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8294ce8/initial/redir#1] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8294ce8/initial/redir#1] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/index.php' pattern='!-f' => not-matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8294ce8/initial/redir#1] (1) [perdir /home/dowsin/public_html/] pass through /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (3) [perdir /home/dowsin/public_html/] add path info postfix: /home/dowsin/public_html/php5.external -> /home/dowsin/public_html/php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/php5.external/index.php -> php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-f' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-d' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (2) [perdir /home/dowsin/public_html/] rewrite 'php5.external/index.php' -> 'index.php?q=php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (3) split uri=index.php?q=php5.external/index.php -> uri=index.php, args=q=php5.external/index.php&q=user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (3) [perdir /home/dowsin/public_html/] add per-dir prefix: index.php -> /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (2) [perdir /home/dowsin/public_html/] trying to replace prefix /home/dowsin/public_html/ with /
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (5) strip matching prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (4) add subst prefix: index.php -> /index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b8299248/initial/redir#2] (1) [perdir /home/dowsin/public_html/] internal redirect with /index.php [INTERNAL REDIRECT]
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829b7e0/initial/redir#3] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829b7e0/initial/redir#3] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829b7e0/initial/redir#3] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/index.php' pattern='!-f' => not-matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829b7e0/initial/redir#3] (1) [perdir /home/dowsin/public_html/] pass through /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (3) [perdir /home/dowsin/public_html/] add path info postfix: /home/dowsin/public_html/php5.external -> /home/dowsin/public_html/php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/php5.external/index.php -> php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-f' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-d' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (2) [perdir /home/dowsin/public_html/] rewrite 'php5.external/index.php' -> 'index.php?q=php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (3) split uri=index.php?q=php5.external/index.php -> uri=index.php, args=q=php5.external/index.php&q=php5.external/index.php&q=user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (3) [perdir /home/dowsin/public_html/] add per-dir prefix: index.php -> /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (2) [perdir /home/dowsin/public_html/] trying to replace prefix /home/dowsin/public_html/ with /
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (5) strip matching prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (4) add subst prefix: index.php -> /index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829caa0/initial/redir#4] (1) [perdir /home/dowsin/public_html/] internal redirect with /index.php [INTERNAL REDIRECT]
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829f128/initial/redir#5] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829f128/initial/redir#5] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829f128/initial/redir#5] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/index.php' pattern='!-f' => not-matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b829f128/initial/redir#5] (1) [perdir /home/dowsin/public_html/] pass through /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (3) [perdir /home/dowsin/public_html/] add path info postfix: /home/dowsin/public_html/php5.external -> /home/dowsin/public_html/php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/php5.external/index.php -> php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-f' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-d' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (2) [perdir /home/dowsin/public_html/] rewrite 'php5.external/index.php' -> 'index.php?q=php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (3) split uri=index.php?q=php5.external/index.php -> uri=index.php, args=q=php5.external/index.php&q=php5.external/index.php&q=php5.external/index.php&q=user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (3) [perdir /home/dowsin/public_html/] add per-dir prefix: index.php -> /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (2) [perdir /home/dowsin/public_html/] trying to replace prefix /home/dowsin/public_html/ with /
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (5) strip matching prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (4) add subst prefix: index.php -> /index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a05f0/initial/redir#6] (1) [perdir /home/dowsin/public_html/] internal redirect with /index.php [INTERNAL REDIRECT]
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a2dd0/initial/redir#7] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a2dd0/initial/redir#7] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a2dd0/initial/redir#7] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/index.php' pattern='!-f' => not-matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a2dd0/initial/redir#7] (1) [perdir /home/dowsin/public_html/] pass through /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (3) [perdir /home/dowsin/public_html/] add path info postfix: /home/dowsin/public_html/php5.external -> /home/dowsin/public_html/php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/php5.external/index.php -> php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-f' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-d' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (2) [perdir /home/dowsin/public_html/] rewrite 'php5.external/index.php' -> 'index.php?q=php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (3) split uri=index.php?q=php5.external/index.php -> uri=index.php, args=q=php5.external/index.php&q=php5.external/index.php&q=php5.external/index.php&q=php5.external/index.php&q=user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (3) [perdir /home/dowsin/public_html/] add per-dir prefix: index.php -> /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (2) [perdir /home/dowsin/public_html/] trying to replace prefix /home/dowsin/public_html/ with /
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (5) strip matching prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (4) add subst prefix: index.php -> /index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a4348/initial/redir#8] (1) [perdir /home/dowsin/public_html/] internal redirect with /index.php [INTERNAL REDIRECT]
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a6c78/initial/redir#9] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a6c78/initial/redir#9] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a6c78/initial/redir#9] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/index.php' pattern='!-f' => not-matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a6c78/initial/redir#9] (1) [perdir /home/dowsin/public_html/] pass through /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (3) [perdir /home/dowsin/public_html/] add path info postfix: /home/dowsin/public_html/php5.external -> /home/dowsin/public_html/php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (3) [perdir /home/dowsin/public_html/] strip per-dir prefix: /home/dowsin/public_html/php5.external/index.php -> php5.external/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (3) [perdir /home/dowsin/public_html/] applying pattern '^(.*)$' to uri 'php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-f' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (4) [perdir /home/dowsin/public_html/] RewriteCond: input='/home/dowsin/public_html/php5.external' pattern='!-d' => matched
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (2) [perdir /home/dowsin/public_html/] rewrite 'php5.external/index.php' -> 'index.php?q=php5.external/index.php'
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (3) split uri=index.php?q=php5.external/index.php -> uri=index.php, args=q=php5.external/index.php&q=php5.external/index.php&q=php5.external/index.php&q=php5.external/index.php&q=php5.external/index.php&q=user
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (3) [perdir /home/dowsin/public_html/] add per-dir prefix: index.php -> /home/dowsin/public_html/index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (2) [perdir /home/dowsin/public_html/] trying to replace prefix /home/dowsin/public_html/ with /
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (5) strip matching prefix: /home/dowsin/public_html/index.php -> index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (4) add subst prefix: index.php -> /index.php
xxx.xxx.xxx.xxx - - [14/Aug/2011:14:54:07 +0000] [example.com/sid#b80e52b0][rid#b82a8338/initial/redir#10] (1) [perdir /home/dowsin/public_html/] internal redirect with /index.php [INTERNAL REDIRECT]
服务器错误日志:
[2011 年 8 月 1 日星期一 15:59:20] [错误] [客户端 xxx.xxx.xxx.xxx] 请求超出了 10 次内部重定向的限制,这可能是由于配置错误。如有必要,请使用“LimitInternalRecursion”增加限制。使用“LogLevel debug”获取回溯。
Wordpress 博客设置:vhost
<VirtualHost *:80>
ServerName blog.com
ServerAlias www.blog.com
DocumentRoot /home/rod32/public_html
FastCgiExternalServer /home/rod32/public_html/php5.external -host 127.0.0.1:9000
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
Alias /usr/lib/cgi-bin/ /home/rod32/public_html/
RewriteLogLevel 3
<Directory "/home/rod32/public_html">
allow from all
Options -Indexes
AllowOverride all
</Directory>
ErrorLog "/home/rod32/error.log"
CustomLog "/home/rod32/access.log" combined
</VirtualHost>
.htaccess
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
答案1
我还没有找到更好的解决方案,但把这个放到你的 .htacces 中就可以了
RewriteCond %{REQUEST_URI} !php5.external
或者类似这种情况!
它在我的 drupal 测试上运行良好...但我正在寻找一种无需从我的服务器编辑所有 .htacess 即可运行的东西