httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <>
Subject Re: [users@httpd] mod_rewrite problem with mod_fcgid
Date Sat, 28 Aug 2010 10:27:22 GMT
And whats wrong with the rule? Looks to me that your php script is not

Sent from my phone

On Aug 28, 2010 7:50 PM, "Umar" <> wrote:

Dear User,

Recently i have configured mod_fcgid + php + apache on FreeBSD everything is
working fine. But my mod_rewrite rul is not working.

Here is my virtualhost setting

<VirtualHost *:80>
   DocumentRoot "/usr/local/www/mydata"
   ErrorLog "/var/log/apache/unix-error_log"
   CustomLog "/var/log/apache/unix-access_log" common
   Action php-fcgi /fcgi-bin/php-fcgi-wrapper
   Alias /fcgi-bin/ /usr/local/www/apache22/php5-default/

   RewriteEngine on
   RewriteLog "/var/log/apache/rewrite.log"
   RewriteLogLevel 3
   RewriteCond %{QUERY_STRING} ^q=(.*)$
   RewriteRule /.*-channel-(\d+) /search_jobs.php?q=%1 [L]


Here is to output of rewrite logs - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (2) init rewrite
engine with requested uri /abc-channel-202 - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (3) applying pattern
'/.*-channel-(\d+)' to uri '/abc-channel-202' - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (2) rewrite
'/abc-channel-202' -> '/search_jobs.php?q=abcd' - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (3) split
uri=/search_jobs.php?q=abcd -> uri=/search_jobs.php, args=q=abcd - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (2) local path result:
/search_jobs.php - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (2) prefixed with
document_root to /usr/local/www/mydata/search_jobs.php - - [28/Aug/2010:09:45:29 +0500]
[][rid#28996058/initial] (1) go-ahead with
/usr/local/www/mydata/search_jobs.php [OK]

Here is the logs of virtualhost

[Sat Aug 28 09:42:17 2010] [warn] [client] (53)Software
caused connection abort: mod_fcgid: error reading data from FastCGI server
[Sat Aug 28 09:42:17 2010] [error] [client] Premature end of
script headers: search_jobs.php

Would you please help how i can solve this issue.



View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
  "   from the digest:
For additional commands, e-mail:

View raw message