]> granicus.if.org Git - apache/blobdiff - docs/manual/howto/cgi.xml
"most common". Sheesh.
[apache] / docs / manual / howto / cgi.xml
index bf6f4dc6c842fdf70cf5fc8ae375a6cea0e95593..3888a98bc4c8af952b95c0b1fff222b24ab02052 100644 (file)
@@ -32,6 +32,7 @@
       <modulelist>
         <module>mod_alias</module>
         <module>mod_cgi</module>
+        <module>mod_cgid</module>
       </modulelist>
 
       <directivelist>
@@ -44,8 +45,9 @@
     <p>The CGI (Common Gateway Interface) defines a way for a web
     server to interact with external content-generating programs,
     which are often referred to as CGI programs or CGI scripts. It
-    is the simplest, and most common, way to put dynamic content on
-    your web site. This document will be an introduction to setting
+    is a simple way to put dynamic content on
+    your web site, using whatever programming language you're most
+    familiar with. This document will be an introduction to setting
     up CGI on your Apache web server, and getting started writing
     CGI programs.</p>
   </section>
     directive has not been commented out.  A correctly configured directive
     may look like this:
 
+    <highlight language="config">
+      LoadModule cgid_module modules/mod_cgid.so
+    </highlight>
+
+
+     On Windows, or using a non-threaded MPM like prefork,  A correctly 
+     configured directive may look like this:
+
     <highlight language="config">
       LoadModule cgi_module modules/mod_cgi.so
     </highlight></note>
 
+
     <section id="scriptalias">
       <title>ScriptAlias</title>
 
@@ -84,7 +95,7 @@
       directive looks like:</p>
 
       <highlight language="config">
-        ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
+ScriptAlias "/cgi-bin/" "/usr/local/apache2/cgi-bin/"
       </highlight>
 
       <p>The example shown is from your default <code>httpd.conf</code>
       directory:</p>
 
       <highlight language="config">
-&lt;Directory /usr/local/apache2/htdocs/somedir&gt;
+&lt;Directory "/usr/local/apache2/htdocs/somedir"&gt;
     Options +ExecCGI
 &lt;/Directory&gt;
       </highlight>
       following configuration.</p>
 
       <highlight language="config">
-&lt;Directory /home/*/public_html&gt;
+&lt;Directory "/home/*/public_html"&gt;
     Options +ExecCGI
     AddHandler cgi-script .cgi
 &lt;/Directory&gt;
       program, you can use the following.</p>
 
       <highlight language="config">
-&lt;Directory /home/*/public_html/cgi-bin&gt;
+&lt;Directory "/home/*/public_html/cgi-bin"&gt;
     Options ExecCGI
     SetHandler cgi-script
 &lt;/Directory&gt;
@@ -577,4 +588,3 @@ foreach my $key (keys %ENV) {
     have found a problem in the Apache source code.</p>
   </section>
 </manualpage>
-