The web server is becoming the universal backend;
study its architecture.
GET
request to a web server. The web server must then decide whether
to:
srm.conf
tell it.
| Lab | |
|---|---|
|
httpd.conf (on NT) or srm.conf (on Unix),
you define the condition(s) under which your server runs files
instead of copying them.
cgi-bin) treat it as a program and run it, or...
.cgi or .pl) treat it as a program
and run it.
httpd.conf (or srm.conf):
# ScriptAlias: This controls which directories contain server scripts. # Format: ScriptAlias fakename realname ScriptAlias /cgi-bin/ /usr/local/web/cgi-bin/
ScriptAlias directives enable users to
have personal CGI directories.
srm.conf (on Unix)
or httpd.conf (on NT):
# Use CGI outside ScriptAliased directories # Format: AddHandler action-name ext1 # Define .cgi filename extension for scripts: AddHandler cgi-script .cgi
| Lab |
|---|
|