<-
Apache > HTTP Server > �ĵ� > �汾2.2
���� ��л | �������� | ��ƪ���ߣ��𲽹� | ��ҳ�����£�2006��1��4�� | ��ȡ���°汾

Apache��������ʹ��

���IJ���Apache��������ʹ�á�

top

ʲô�Ǵ�����(Handler)

"������"�ǵ�һ���ļ�������ʱ��Apache��ִ�в������ڲ����֡��ļ�һ�㶼�л������ļ����͵�������������ͨ�����ļ���ֻ�DZ��������򵥵��ύ��ֻ��ijЩ�ļ����ͻᱻ�ر��"����"��

Apache1.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����������һЩ���ݣ�����ܻ��õ���������Apache API�ṹ��������һ���ֶΣ�

char *handler

������ģ����Ҫʹ�ô�������ֻ���ڶ�����ִ��invoke_handler֮ǰ������r->handlerΪ�ô����������Ƽ��ɡ���������ʵ�ֺ���ǰһ����ֻ��ʹ���˴��������ƶ������������͡������������ƿ�����"-"����������"/"���Ա���ͽ����������Ƴ�ͻ��