<-
Apache > HTTP Server > Documentation > Version 2.4 > ���

����ġ ��� mod_actions

������ ���:  de  |  en  |  fr  |  ja  |  ko 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.
����:�� ����� �̵�������� ��û�޼��忡 ���� CGI ��ũ��Ʈ�� �����Ѵ�.
����:Base
����:actions_module
�ҽ�����:mod_actions.c

���

�� ��⿡�� �ΰ��� ���þ �ִ�. Action ���þ�� ��û�ϴ� ������ MIME content type�� ���� CGI ��ũ��Ʈ�� �����Ѵ�. Script ���þ�� ��û�� Ư�� �޼��带 ����� ��� CGI ��ũ��Ʈ�� �����Ѵ�. �׷��� ������ ó���ϴ� ��ũ��Ʈ�� �ſ� ���� ������ �� �ִ�.

���þ��

����

top

Action ���þ�

����:Ư�� �ڵ鷯�� 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>

����

top

Script ���þ�

����:Ư�� ��û�޼��忡 ���� 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

������ ���:  de  |  en  |  fr  |  ja  |  ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.