[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Apache

What is the different between Apache Module and CGI ?

Andrew
0
andrewyu
Asked:
andrewyu
  • 2
  • 2
1 Solution
 
shiversCommented:
An Apache module is compiled into the server - and usually parses HTML files, runs scripts, etc.

A CGI is an external program living in a directory that is accessible by remote users- the output of the CGI is piped directly thourgh to the user's browser
0
 
andrewyuAuthor Commented:
Thank you very much !

Does it mean that I can write a event for a action ? Anyway, when do I use Apache Module and when do I use CGI ?

Andrew
0
 
shiversCommented:
use apache modules where you want to add extra functionality to the server (like being able to process another inline scripting language)

use CGI to perform dynamic functionality on your web sites - i.e. as a hit counter, email form processor, etc

event/action?  er - the module is essentially (AFAIK) just a handler for a particular type of file - a CGI can be invoked by accessing it's URL - the server will then execute the CGI program and return it's output through the net to the user's browser
0
 
andrewyuAuthor Commented:
I understood, thank you very much !

Andrew
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now