Apache HTTP Server Version 2.0
This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at:
You may follow this link to go to the current version of this document.
: | ̵ û忡 CGI ũƮ Ѵ. |
---|---|
: | Base |
: | actions_module |
ҽ: | mod_actions.c |
ΰ þ ִ. Action
þ ûϴ
CGI ũƮ Ѵ. Script
þ û
Ư 带 CGI ũƮ Ѵ.
óϴ ũƮ ſ ִ.
: | Ư ڵ鷯 content-type CGI ũƮ Ѵ |
---|---|
: | Action action-type cgi-script |
: | ּ, ȣƮ, directory, .htaccess |
Override ɼ: | FileInfo |
: | Base |
: | mod_actions |
þ û action-type̸
cgi-script ϴ ൿ ߰Ѵ.
cgi-script ScriptAlias
AddHandler
Ͽ CGI
ũƮ ҽ URL̴.
action-type ڵ鷯 MIME content type
ִ. þ PATH_INFO PATH_TRANSLATED
CGI ǥ ȯ溯 û URL ϰθ Ѵ.
# Ư û:
Action image/gif /cgi-bin/images.cgi
# Ư Ȯڸ
AddHandler my-file-type .xyz
Action my-file-type /cgi-bin/program.cgi
ù° MIME content type image/gif
ûϸ cgi ũƮ /cgi-bin/images.cgi
óѴ.
ι° Ȯڰ .xyz
ûϸ
cgi ũƮ /cgi-bin/program.cgi
óѴ.
: | Ư û忡 CGI ũƮ Ѵ. |
---|---|
: | Script method cgi-script |
: | ּ, ȣƮ, directory |
: | Base |
: | mod_actions |
þ method 带 Ͽ
ûϸ cgi-script ϴ ൿ
߰Ѵ. cgi-script ScriptAlias
AddHandler
Ͽ CGI
ũƮ ҽ URL̴. þ PATH_INFO
PATH_TRANSLATED CGI ǥ ȯ溯 û URL
ϰθ Ѵ.
Script PUT
Script put
ٸ.
Script ɾ ⺻ ൿ ó ϶.
CGI ũƮ Ҹų, û 带 ˾Ƽ ó
ִ ҽ ״ óѴ. GET
Script ǾƱԸƮ (,
foo.html?hi) ϶. ǾƱԸƮ ٸ
û óѴ.
# <ISINDEX> ˻
Script GET /cgi-bin/search
# CGI PUT ڵ鷯
Script PUT /~bob/put.cgi