Apache HTTP Server Version 2.4

| ����: | ����ġ ��� API�� �����Ѵ� |
|---|---|
| ����: | Experimental |
| ����: | example_module |
| �ҽ�����: | mod_example.c |
����ġ ������ modules/experimental ���丮��
�ִ� ���ϵ��� ����ġ API�� ����Ͽ� ����� �ۼ��Ϸ��� �������
�������� ������.
mod_example.c�� ��� �ݹ�(callback) ������
ȣ�� ������ �����ϴ� �����̴�. ����� �� �� ��� �ݹ���
������ �ʿ䰡 ����. ��� ���ݴ��!
example ����� ������ �����ϴ� ����̴�. �� ����� ������ �����ϰ� Ư�� ��ġ�� "example-handler" �ڵ鷯�� �Ҵ��Ͽ� �װ��� ����¡�ϸ� example ����� ���� �ݹ��� Ȯ���� �� �ִ�.
������ example ����� �����Ϸ��� ���� ������ ��ģ��:
--enable-example �ɼǰ� �Բ�
configure�� �����Ѵ�.make"�� �����Ѵ�).�ڽ��� ���� ����� �߰��Ϸ���:
cp modules/experimental/mod_example.c
modules/new_module/mod_myexample.cmodules/new_module/config.m4 ������ �����.
APACHE_MODPATH_INIT(new_module)��
�߰��Ѵ�.modules/experimental/config.m4 ���Ͽ���
"example"�� �ִ� APACHE_MODULE ���� �����ؿ´�.configure --help��
�����ϸ� ��� ����� ������ �����ش�.config.m4 ���ϵ��� �����϶�.APACHE_MODPATH_FINISH�� �߰��Ѵ�.module/new_module/Makefile.in ������
�����. ����� �������ϴµ� Ư���� ���ɾ �ʿ���ٸ�,
���Ͽ� include $(top_srcdir)/build/special.mk��
�־ �ȴ�.mod_example ��� ����ϱ�example ����� ����Ϸ��� apache2.conf ���Ͽ�
������ ���� ������ �߰��϶�:
<Location /example-info>
SetHandler example-handler
</Location>
�ƴϸ� .htaccess
���Ͽ� ������ ���� ������ �߰��ϰ�, �� ��ġ���� "test.example"
���� ������ ��û�϶�:
AddHandler example-handler .example
������ ������� �� �� ��ġ�� ����¡�ϸ� �տ��� ���� ������ ���Ե� ���̴�.
| ����: | ����ġ ��� API�� �����ϱ����� ���� ���þ� |
|---|---|
| ����: | Example |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| ����: | Experimental |
| ���: | mod_example |
Example ���þ�� example �����
�����ڵ鷯�� ������ ������ ������ ���θ� �����Ѵ�. �� ���þ��
�ƱԸ�Ʈ�� �����ʴ´�. example �����ڵ鷯�� ������ URL��
�����ϸ� ���� ��û�� �����ϱ����� ���ȿ� �Լ����� ���
���� � ������ �Ҹ����� �� �� �ִ�. �� ���þ��� ȿ����
"Example directive declared here: YES/NO"��
Ȯ���� �� �ִ�.