httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Alcacibar <>
Subject Re: mod_rewrite and mod_fcgid pass wrong fcgi request
Date Sat, 14 Nov 2009 19:56:02 GMT
Thanks Jeff for the response.

> I don't know what your rewrite config is, but rewrite isn't required
> to use path info.  Can you post a minimal config that illustrates the
> problem?

my current configuration of the mod_rewrite and mod_fcgid
rohan counter # cat /hosting/http/
RewriteEngine on

RewriteCond $1 !^($|index\.php|stock|images|subidas|galerias|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
rohan counter # cat /hosting/http/
RewriteEngine on

RewriteCond $1 !^($|index\.php|stock|images|subidas|galerias|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

rohan counter # cat /etc/apache2/modules.d/20_mod_fcgid.conf
<IfDefine FCGID>
LoadModule fcgid_module modules/
FcgidIPCDir /var/run/fcgidsock
FcgidProcessTableFile /var/run/fcgid_shm

FcgidMaxRequestsPerProcess 8
FcgidMaxProcesses 10240
FcgidMaxProcessesPerClass 1024
FcgidMinProcessesPerClass 1
FcgidFixPathinfo 1

AddHandler fcgid-script .php
FcgidWrapper /usr/bin/php-cgi .php

FcgidInitialEnv PHP_FCGI_CHILDREN "8"

<FilesMatch \.php$>
        Options +ExecCGI

DirectoryIndex index.php

i using a 307 redirect temporally, but that is the configuration that
give me this problem.

as i told before the file that try to open php-cgi is prefixed with
"redirect:" string.

> Something to consider when debugging mod_fcgid issues is that the same
> config should work with mod_cgi[d] simply by changing the handler from
> fcgid-script to cgi-script.  More people on the users@ mailing list
> are able to help with mod_cgi config issues.

i take your advice and now i probe it, thanks :)

i take the dessicion to use mod_fcgid because i use mapserver php
module, and this module does not have a good memory management, and
with mod_fcgid i solve this problems very efficiently.

cheers, have a nice day.

Felipe Alcacibar Buccioni.

View raw message