httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: Can't seem to enable mod_cgi or mod_cgid in new tree.
Date Wed, 06 Dec 2000 18:04:07 GMT
This isn't the right fix because currently we haven't chosen the MPM
by the time this code runs, but at least it will let you enable cgi.

Index: modules/generators/config.m4
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/generators/config.m4,v
retrieving revision 1.2
diff -u -r1.2 config.m4
--- modules/generators/config.m4        2000/12/04 21:38:37     1.2
+++ modules/generators/config.m4        2000/12/06 18:01:44
@@ -17,6 +17,19 @@
 
 LTFLAGS="$LTFLAGS -export-dynamic"
 
+if test "$apache_cv_mpm" = "mpmt_pthread" -o "$apache_cv_mpm" =
"dexter"; then
+# if we are using a threaded MPM, we will get better performance with
+# mod_cgid, so make it the default.
+    APACHE_CHECK_GENERATOR_MODULE(cgid, CGI scripts, , yes)
+    APACHE_CHECK_GENERATOR_MODULE(cgi, CGI scripts, , no)
+else
+# if we are using a non-threaded MPM, it makes little sense to use
+# mod_cgid, and it just opens up holes we don't need.  Make mod_cgi
the
+# default
+    APACHE_CHECK_GENERATOR_MODULE(cgi, CGI scripts, , yes)
+    APACHE_CHECK_GENERATOR_MODULE(cgid, CGI scripts, , no)
+fi
+
 APACHE_MODPATH_FINISH
     
 APACHE_SUBST(STANDARD_LIBS)
-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message