Apche CGI

Maybe I'm missing something here, but that question doesn't make any sense to me.

httpd is the Apache daemon (application) that responds to http requests.

CGI is a protocol specification used for extending web server capabilities.

Are you looking for the CGI spec itself?

Or are you looking for some part of the httpd.conf which tells Apache how to process CGIs?

In short, more info, please.
 
Do you mean that Apache is not executing scripts, and probably just showing them as plain text? If so, there should be a directory assigned for executables. Probably /Library/WebServer/CGI-Executables/ .

If this is not what you needed to know, then yeah, please explain.
 
There are a couple parts and i dont know what you changed but..
You need this along with all the other LoadModules:

LoadModule cgi_module libexec/httpd/mod_cgi.so

And this with all the other AddModules:

AddModule mod_cgi.c

You need this about halfway down the page:

ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
#
# "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/Library/WebServer/CGI-Executables">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

And you might want to have this near the bottom:

AddHandler cgi-script .cgi
There are some other random stuff about cgi in there but i dont think you changed that. If you have any other questions or want me to email you my httpd.conf then email me at boardkev@aol.com. I hope this is what you want.
 
Back
Top