Basics of Running CGI Scripts


CGI stands for Common Gateway Interface. It is a standard protocol used by web servers to communicate with external programs. The web server provides all the necessary information about the request to an external program, which processes it and returns a response. The response is then transmitted back to the client. CGIs were the original mechanism to generate unique content for every request on-the-fly ("dynamic content") and are supported by nearly every web server. Apache provides support for CGIs using the mod_cgi Apache module (mod_cgid when running a threaded Apache server).

Poorly written or sample CGI programs can be a security risk, so if you are not using this functionality, you may want to disable it altogether, as described in Chapter 6.




Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net