Apache HTTP Server Version 2.4
����: | ����ġ ��� API�� �����Ѵ� |
---|---|
����: | Experimental |
����: | example_hooks_module |
�ҽ�����: | mod_example_hooks.c |
����ġ ������ modules/examples
���丮��
�ִ� ���ϵ��� ����ġ API�� ����Ͽ� ����� �ۼ��Ϸ��� �������
�������� ������.
mod_example_hooks.c
�� ��� �ݹ�(callback) ������
ȣ�� ������ �����ϴ� �����̴�. ����� �� �� ��� �ݹ���
������ �ʿ䰡 ����. ��� ���ݴ��!
example ����� ������ �����ϴ� ����̴�. �� ����� ������ �����ϰ� Ư�� ��ġ�� "example-hooks-handler" �ڵ鷯�� �Ҵ��Ͽ� �װ��� ����¡�ϸ� example ����� ���� �ݹ��� Ȯ���� �� �ִ�.
������ example ����� �����Ϸ��� ���� ������ ��ģ��:
--enable-example-hooks
�ɼǰ� �Բ�
configure
�� �����Ѵ�.make
"�� �����Ѵ�).�ڽ��� ���� ����� �߰��Ϸ���:
cp modules/examples/mod_example_hooks.c
modules/new_module/mod_myexample.c
modules/new_module/config.m4
������ �����.
APACHE_MODPATH_INIT(new_module)
��
�߰��Ѵ�.modules/examples/config.m4
���Ͽ���
"example_hooks"�� �ִ� APACHE_MODULE ���� �����ؿ´�.configure --help
��
�����ϸ� ��� ����� ������ �����ش�.config.m4
���ϵ��� �����϶�.APACHE_MODPATH_FINISH
�� �߰��Ѵ�.module/new_module/Makefile.in
������
�����. ����� �������ϴµ� Ư���� ���ɾ �ʿ���ٸ�,
���Ͽ� include $(top_srcdir)/build/special.mk
��
�־ �ȴ�.