System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

mod_cgid question (HPUX apache 2.0.59)

 
John Payne_2
Honored Contributor

mod_cgid question (HPUX apache 2.0.59)

The documentation for the HP Apache 2.0.59 states the following:

Enhancements

* Added two new directives CGIScriptTimeoutEnabled and CGIScriptTimeout in mod_cgid
* A new directive - ScriptMultipleDaemons has been added to cgid which can be configured to create multiple cgi daemons to process cgi requests. This improves the performance of mod_cgid.

For the life of me, I can't find anything that gives the syntax of these directives. (I assume the 2 should be 'on' and the other is in seconds.) Has anyone started using these directives? Do you know the correct syntax for using them?

Thanks
John

Oh, BTW, the Colorado State Women's Volleyball team is really something. Or so I heard.
Spoon!!!!
3 REPLIES 3
John Payne_2
Honored Contributor

Re: mod_cgid question (HPUX apache 2.0.59)

Well, I guess silence is an answer, but it has been 2 weeks now, and we have a security vulnerability pointing us to upgrade to this version of apache, so maybe someone has an answer now. Anyone?

Thanks
John
Spoon!!!!
John Payne_2
Honored Contributor

Re: mod_cgid question (HPUX apache 2.0.59)

OK, so my mantra "manuals are for sissies" occasionally bites me on the rear...


From the HP Apache 2.0.59 Admin guide:

Added two new directives CGIScriptTimeoutEnabled and CGIScriptTimeout

mod_cgid from 2.0.59.00 onwards supports two new directives which can be
configured to control the amount of time cgi scripts are allowed to run on
the server. These can be configured in the apache configuration file httpd.conf
as below:

- CGIScriptTimeoutEnabled :
Allows to set the timeout for cgi scripts.
When the value of this directive is set to "On", the default timeout for the
cgi scripts would be set to the value of TimeOut directive, unless it is
overridden by CGIScriptTimeout directive as shown below.

Usage: CGIScriptTimeoutEnabled On
Default: Off

If the CGIScriptTimeoutEnabled is set to "Off", then there is no timeout for the
cgi scripts even if CGIScriptTimeout is configured with a value. So, make sure
CGIScriptTimeoutEnabled is On, whenever you need a timeout to be configured.

- CGIScriptTimeout :
The maximum amount of time in seconds a cgi script is allowed to
run. This value overrides the one set by TimeOut directive.
CGIScriptTimeoutEnabled should be set to "On" to use this directive.

Usage: CGIScriptTimeout 250
Default: Set to the value of TimeOut directive if CGIScriptTimeoutEnabled is set to "On


Enabling multiple cgi daemons using ScriptMultipleDaemons directive


- ScriptMultipleDaemons:

mod_cgid from 2.0.59.00 onwards supports this directive, which can be
configured to create multiple cgi daemons (rather than one daemon which is the
default) during Apache startup. Configure this directive to a reasonable value(integer)
to improve cgid performance.

Usage: ScriptMultipleDaemons
Default: By default only one daemon is created for serving cgi requests

NOTE: This directive should appear after 'Scriptsock' directive as shown below:


Scriptsock logs/cgisock
ScriptMultipleDaemons 10


Spoon!!!!
John Payne_2
Honored Contributor

Re: mod_cgid question (HPUX apache 2.0.59)

Have fun with it.

John
Spoon!!!!