Apache HTTP Server Version 2.4

| ����: | �� ����� �̵�������� ��û���忡 ���� CGI ��ũ��Ʈ�� �����Ѵ�. |
|---|---|
| ����: | Base |
| ����: | actions_module |
| �ҽ�����: | mod_actions.c |
�� ���� �ΰ��� ���þ �ִ�. Action ���þ�� ��û�ϴ�
������ MIME content type�� ���� CGI ��ũ��Ʈ�� �����Ѵ�.
Script ���þ��
��û�� Ư�� ���带 ����� ��� CGI ��ũ��Ʈ�� �����Ѵ�.
���� ������ ó���ϴ� ��ũ��Ʈ�� �ſ� ���� ������ �� �ִ�.
| ����: | Ư�� �ڵ鷯�� content-type�� ���� CGI ��ũ��Ʈ�� ����Ѵ� |
|---|---|
| ����: | Action action-type cgi-script [virtual] |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Base |
| ���: | mod_actions |
| ����: | virtual �����ڿ� �ڵ鷯�� ����ġ
2.1�� �߰��Ǿ��� |
�� ���þ�� ��û�� action-type�̸�
cgi-script�� �����ϴ� �ൿ�� ������ �߰��Ѵ�.
cgi-script�� ScriptAlias�� AddHandler�� ����Ͽ� CGI
��ũ��Ʈ�� ������ ���ҽ��� URL����̴�.
action-type���� �ڵ鷯�� MIME content type��
����� �� �ִ�. �� ���þ�� PATH_INFO��
PATH_TRANSLATED CGI ǥ�� ȯ�溯���� ��û��
������ URL�� ���ϰ�θ� �����Ѵ�. REDIRECT_HANDLER
������ Ư�� ��û�� ����� �ڵ鷯�� �����Ѵ�.
# Ư�� MIME content type�� ���� ��û:
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��
ó���Ѵ�.
In the second example, requests for files with a file extension of
.xyz are handled instead by the specified cgi script
/cgi-bin/program.cgi.
�������� virtual �����ڴ� ��û�� ������
������ �����ϴ��� �˻����� �ʵ��� �Ѵ�. ���� ���, ������
��ġ�� Action ���þ ����Ϸ���
��� �����ϴ�.
<Location /news>
SetHandler news-handler
Action news-handler /cgi-bin/news.cgi virtual
</Location>
| ����: | Ư�� ��û���忡 ���� 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