<-
Apache > HTTP ������ > ������������ > ������ 2.0

Please note

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.

������������� ������������ � Apache

��������� �����:  en  |  es  |  fr  |  ja  |  ko  |  ru  |  tr 

���� �������� ��������� ������������� ������������ (handlers) � Apache.

top

��� ����� ����������

���������� �������� ���������� ���������� Apache, ������� ������ ��������� ������� ��� ��������� �������������� �����. ��� �������, ������� ����� ������������� ���� ���������� ����������, ������� ����������� �������� ������ �� ���� �����. ������ ����� ������ ������������ ������������, �� ��������� ���� ������ �������������� �������������� (handled) ��������.

� Apache 1.1 ��������� ����������� ������������ ����������� ����. ���ޣ� ��������� ������ ����� ������������ ������ �� ������ �� �� ����, �� � �� ���������� ������ ��� �� ���������������. ��� �������������� �������� ������� ��������, ��-������ ������, ��� ��� ������� ���������, � ��-������, ��� ��������� ������������� � ������ ��� ���, ��� � ����������. (��. ����� «����� � ����������� ������������»)

����������� ����� ������������ �� ���� ��� ���������������� � ������ (��� ������������ � ������� �������) �������, ��� ��� ����� ���� ��������� � ������� ��������� Action. � ����������� ������������ ������� ������� ��������� ���������� �����������:

top

�������

��������� ������������ ��������� CGI-��������

��� ������������� ��������� ��������, ������ ������ ����� � ����������� html ����� ��������� �� ���������� CGI-������ footer.pl ��� ��������������� ��������� �������������� �����.

Action add-footer /cgi-bin/footer.pl
AddHandler add-footer .html

� ���� ������� CGI-������ ������������ �� ��, ����� ������� ������������ ����������� �������� (�� ������� ��������� ���������� ��������� PATH_TRANSLATED), ������ � � �������������� ��� ����������� ���������.

����� � HTTP �����������

��������� ��������� �������� �������� ����������� ���������� send-as-is, ������� ������������ ��� ������, ���������� ���� ����������� HTTP-���������. ��� ����� � �������� /web/htdocs/asis/ ����� �������������� ������������ send-as-is, ���������� �� �� ����������.

<Directory /web/htdocs/asis>
SetHandler send-as-is
</Directory>

top

��������� ��� �������������

��� ���� ����� ����� ���� ������������ �����������, � Apache API ���� ������� ��������� ����������. � ���������, � ��������� request_rec ���� ��������� ����� ����:

char *handler

���� �� ������ � ��ϣ� ������ ������������ ����������, �� �ӣ, ��� ��� ���� �������, ��� �������� � r->handler ��� ���������������� �����������, ���ޣ� ������� ��� ���������� ����� ���, ��� ������ ������� �� ������ invoke_handler. ����������� ����������� ����� ��� ��, ��� � ������, �� ����������� ���� ����, ��� ������ ���������� ��������� ��� �����������, � �� ��� ����������� (content type). ���� ��� � �� �������� ������������, �� ���������� ��������� ������� ���������� ������������ - ���������� ������������ �����, �����̣���� ������� � �� ���������� ����� ���� - ��� �������� �� ������������ � ������������� �ͣ� �����-����� (media type).

��������� �����:  en  |  es  |  fr  |  ja  |  ko  |  ru  |  tr