https://issues.apache.org/bugzilla/show_bug.cgi?id=51355
Bug #: 51355
Summary: MaxProcesses doesn't work for the second
FcgidCmdOptions statement
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: mod_fcgid
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Hello.
I've found a bug, and fixed it. If httpd.conf contains something like this:
---------------
<VirtualHost *:80>
DocumentRoot "/var/html"
ServerName www.myserver.com
ServerAlias myserver.com
AddHandler fcgid-script fcg fcgi fpl
FcgidCmdOptions /var/www/script1.fcgi \
MinProcesses 12 \
IOTimeout 60
FcgidCmdOptions "/var/www/script2.fcgi" \
MaxProcesses 1
...
</VirtualHost>
---------------
, i.e. there are 2 FcgidCmdOptions statements, MaxProcesses for script2.fcgi
doesn't work. Even if it's set to 1, mod_fcgid creates many instances of the
class.
To fix this, in fcgid_spawn_ctl.c, please replace this string:
&& current_node->vhost_id == sconf->vhost_id
with this one:
&& current_node->vhost_id == command->vhost_id
Thank you.
Have a good day,
Sincerely Alex
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]