But same thing is working with mod_php, I am sure problem with mod_fcgid, not the php script. Regards, Igor Cicimov wrote: > > And whats wrong with the rule? Looks to me that your php script is not > right. > > Sent from my phone > > On Aug 28, 2010 7:50 PM, "Umar" <unix.co@xxxxxxxxx> 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> > ServerAdmin unix.co@xxxxxxxxx > DocumentRoot "/usr/local/www/mydata" > ServerName unix.expample.org > 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] > > </VirtualHost> > > Here is to output of rewrite logs > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][rid#28996058/initial] (2) init rewrite > engine with requested uri /abc-channel-202 > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][rid#28996058/initial] (3) applying pattern > '/.*-channel-(\d+)' to uri '/abc-channel-202' > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][rid#28996058/initial] (2) rewrite > '/abc-channel-202' -> '/search_jobs.php?q=abcd' > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][rid#28996058/initial] (3) split > uri=/search_jobs.php?q=abcd -> uri=/search_jobs.php, args=q=abcd > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][rid#28996058/initial] (2) local path > result: > /search_jobs.php > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][rid#28996058/initial] (2) prefixed with > document_root to /usr/local/www/mydata/search_jobs.php > 202.142.167.93 - - [28/Aug/2010:09:45:29 +0500] > [unix.example.org/sid#28951018][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 202.142.167.93] (53)Software > caused connection abort: mod_fcgid: error reading data from FastCGI server > [Sat Aug 28 09:42:17 2010] [error] [client 202.142.167.93] Premature end > of > script headers: search_jobs.php > > > Would you please help how i can solve this issue. > > > regards, > > Umar > > -- > View this message in context: > http://old.nabble.com/mod_rewrite-problem-with-mod_fcgid-tp29559444p29559444.html > Sent from the Apache HTTP Server - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > -- View this message in context: http://old.nabble.com/mod_rewrite-problem-with-mod_fcgid-tp29559444p29559632.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx