Clean Url problems WIth ubuntu apache , php-fpm, fastcgi

Posted on

Clean Url problems WIth ubuntu apache , php-fpm, fastcgi – Problems with loading a website are often blamed on the Internet connection, but even the most perfectly set up network cannot help if there is no service to reply at your destination. One of the most popular HTTP servers used for this task is Apache2. Much of Apache’s popularity can be attributed to its easy installation and use, but never the less it is possible to run into problems with even the easiest of the software. If you’ve encountered an issue loading your web page, follow these simple troubleshooting methods outlined in this guide to attempt to get your web server back up and working again. Below are some tips in manage your apache2 server when you find problem about apache-2.2, ubuntu, fastcgi, drupal, php-fpm.

Well this is a kind of repost of this, but no one has replied to my question so far, so I am here.

I am using Apache/2.2.17 (Ubuntu) mod_fastcgi with php-fpm and I can’t enable clean URLs as the site returns Internal Server Errors . I think something is not right in my .htaccess settings. The same server contains WordPress under a different virtual host and it works fine.

This is some relevant information that I hope can help to find out the problem.

My virtual host contains:

<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 contains

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

rewrite_log:

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]

Server error log:

[Mon Aug 01 15:59:20 2011] [error] [client xxx.xxx.xxx.xxx] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.

WordPress Blog settings : 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]

I still haven’t find a better solution but puting this on the conds into yours .htacces do the trick

RewriteCond %{REQUEST_URI} !php5.external

Or somethinf like this cond!

It worked on my drupal testes… but i am looking for something that can work without i have to edit all .htacess from my server

Leave a Reply

Your email address will not be published. Required fields are marked *