Apache HTTP Server Version 2.2

This document refers to the 2.2 version of Apache httpd, which is no longer maintained. The active release is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
| ����: | HTTP ��û ����� ���� ��� ���� |
|---|---|
| ����: | Extension |
| ����: | headers_module |
| �ҽ�����: | mod_headers.c |
�� ����� HTTP ��û ����� ���� ����� �����ϰ� �����ϴ� ���þ���� �����Ѵ�. ����� ��ġ�ų� ��ü, ������ �� �ִ�.
mod_headers�� �����ϴ� ���þ�� ����������
���� ��� ��ҿ��� ����� �� ������, ���� �������� ���μ� ���þ���
������ ������ ���� �ִ�.
ó�������� �߿��ϸ�, �������Ͽ� ���� ������ ���� ������ ������ �´�. ���� �� ���þ �ݴ�� ������ ȿ���� ������.
RequestHeader append MirrorID "mirror 12"
RequestHeader unset MirrorID
���� ���� ������ MirrorID ����� ������
�ʴ´�. �ݴ�� ������ MirrorID ����� "mirror 12"�� �����Ѵ�.
mod_headers�� ��û �ʱ⳪ ���߿� ������
�� �ִ�. ������ ��������ڸ� �����ϱ� ������ ��û �����
�����ϰ� ������ ��Ʈ���� ���� ���� ����� �����ϴ� ����(late)
����� ����Ѵ�. ���� �����ϴ� ���������� �� ���� �����
����϶�.
�̸�(early) ����� �����ڸ� ���� �˻�/���������� �������.
early Ű���带 ����Ͽ� ������ ���þ�� ��û��
ó���ϱ� �����Ҷ� �����Ѵ�. ��, �ٸ� ��û�� ���ǽ����ϰų�
�˻縦 �ϱ����� ����� �� ������, ������ �����ϱ� ���� �ٸ�
����� �ҽÿ� ����� ������ �� �ִ�.
��û��ο� ���� ������ ���캸�� ���� �̸� ���þ
ó���ϱ���� �̸� ��� ���þ�� �ּ����̳� ����ȣ��Ʈ
�����ҿ����� ����� �� �ִ�. �̸� ���þ�� ��û��ο�
������ �� ������� <Directory>��
<Location>���� �����ҿ��� ����� ��
����.
Header echo ^TS
MyHeader ����� �߰��Ѵ�. Ŭ���̾�Ʈ��
�� ����� ���� ������ ���ϸ� �����ϰų� Ŭ���̾�Ʈ��
�������� �������� ã�� �� �ִ�.
Header add MyHeader "%D %t"
���信 ������ ���� ����� �����.
MyHeader: D=3775428 t=991424704447256
Header add MyHeader "Hello Joe. It took %D microseconds \
for Apache to serve this request."
���信 ������ ���� ����� �����.
MyHeader: Hello Joe. It took D=3775428 microseconds for Apache
to serve this request.
MyHeader�� ������. Ư�� Ŭ���̾�Ʈ���Ը�
���信 ����� �߰��Ҷ� �����ϴ�. �� ������ �����Ϸ���
mod_setenvif ����� �ʿ��ϴ�.
SetEnvIf MyRequestHeader value HAVE_MyRequestHeader
Header add MyHeader "%D %t mytext" env=HAVE_MyRequestHeader
HTTP ��û�� MyRequestHeader: value �����
�ִٸ�, ���信 ������ ���� ����� �����.
MyHeader: D=3775428 t=991424704447256 mytext
| ����: | HTTP ���� ����� �����Ѵ� |
|---|---|
| ����: | Header [condition] set|append|add|unset|echo
header [value] [early|env=[!]variable] |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Extension |
| ���: | mod_headers |
�� ���þ�� HTTP ���� ����� ��ġ�ų� ��ü, �����Ѵ�. ���� �ڵ鷯�� ��� ���Ͱ� ������ ���Ŀ� ����� �����ϱ���� ���� ����� ������ �� �ִ�.
condition�� ���������� ����ϸ�, ������
onsuccess Ȥ�� always�� ����Ѵ�.
�̴� � ���� ���ǥ�� ���������� �����Ѵ�.
onsuccess�� 2xx �����ڵ带
���ϰ�, always�� (2xx��
������) ��� �����ڵ带 ���Ѵ�. Ư�� � ����� ������
����� �����ϰ� �ʹٸ�, ���� � ���� ������� �� �������
�Ѵ�.
�ι�° �ƱԸ�Ʈ�� ���� ����� �ٸ���. �ι�° �ƱԸ�Ʈ�� �Ʒ� ���� �ϳ��� ����� �� �ִ�.
setappendaddappend��
����ؾ� �Ѵ�.unsetecho�ƱԸ�Ʈ �ڿ� header �̸��� ���´�. �����
�ڿ� �ݷ��� ���� �� ������, ��� �ȴ�. set,
append, add, unset����
��ҹ��ڴ� �����Ѵ�. echo�� header
�̸��� ������ڸ� �����ϰ� ����ǥ������ ����� �� �ִ�.
add, append, set��
����Ҷ��� ����° �ƱԸ�Ʈ value�� �ʿ��ϴ�.
value �ȿ� ������ �ִٸ� �ֵ���ǥ�� ����� �Ѵ�.
value�� �Ϲ� ���ڿ��̳� ������ ����ϴ� ���ڿ��̸�,
�ΰ����� ���� ����� ���� �ִ�. value���� �����ϴ�
���ı���ڴ� ������ ����.
| ���� | ���� |
|---|---|
%% |
�ۼ�Ʈ ��ȣ |
%t |
��û�� ���� �ð��� ����ǥ�ؽ÷� epoch (1970�� 1��
1��) ���� ���� ����ũ���� ������. �� �տ� t=��
�ٴ´�. |
%D |
��û�� ���� �ð����� ����� ��Ʈ���� �������� �ɸ�
�ð�. ��û�� �Ⱓ�� ���. �� �տ� D=��
�ٴ´�. |
%{FOOBAR}e |
ȯ�溯�� FOOBAR��
����. |
%{FOOBAR}s |
mod_ssl�� �����Ѵٸ�, SSL ȯ�溯��
FOOBAR�� ����. |
%s ���� �����ڴ� ����ġ 2.1 ���Ŀ��� �ִ�.
�� �����ڴ� SSLOptions +StdEnvVars�� ����ϴ�
�δ��� �������� %e ��� ����� �� �ִ�. �
���������� SSLOptions +StdEnvVars�� ����ؾ�
�Ѵٸ�, %e�� %s ���� �ξ� ��
ȿ�����̴�.
Header ���þ� �ڿ� �ൿ�� �Ͼ
������ �����ϴ� �߰� �ƱԸ�Ʈ�� �̸� ó����
���ϴ� Ű���� early�� ���� �� �ִ�.
env=... �ƱԸ�Ʈ�� ����� ��� �ش�
ȯ�溯���� �����Ѵٸ� (Ȥ��
env=!...�� ���� ȯ�溯���� ��������
�ʴٸ�) Header ���þ �����Ѵ�.
���� ������ ���þ�� ��û�� �ƹ� ������ ��ġ�� �ʴ´�.
�̸� ����� �ƴ϶�� ������ ��Ʈ������
������ ������ Header ���þ ó���Ѵ�.
���� ��� ���Ͱ� �߰��ϴ� ����� ������ ��κ��� �����
�����ϰų� ��� �� �ִ�.
| ����: | HTTP ��û ����� �����Ѵ� |
|---|---|
| ����: | RequestHeader set|append|add|unset header
[value] [early|env=[!]variable] |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Extension |
| ���: | mod_headers |
�� ���þ�� HTTP ��û ����� ��ġ�ų� ��ü, �����Ѵ�. ���� �ڵ鷯�� �����ϱ� ������ ����� �����ϱ���� ���� ����� ������ �� �ִ�. ù��° �ƱԸ�Ʈ�� ���� ����� �ٸ���. ù��° �ƱԸ�Ʈ�� �Ʒ� ���� �ϳ��� ����� �� �ִ�.
setappendaddappend��
����ؾ� �Ѵ�.unset�ƱԸ�Ʈ �ڿ� ������� ���´�. ����� �ڿ� �ݷ��� ����
�� ������, ��� �ȴ�. ��ҹ��ڴ� �����Ѵ�. add,
append, set�� ����Ҷ��� ����°
�ƱԸ�Ʈ value�� �ʿ��ϴ�. value �ȿ�
������ �ִٸ� �ֵ���ǥ�� ����� �Ѵ�. unset�� ����Ҷ���
value�� ������ �ȵȴ�. value�� �Ϲ�
���ڿ��̳� ������ ����ϴ� ���ڿ��̸�, �ΰ����� ���� �����
���� �ִ�. �����ϴ� ���ı���ڴ� Header�� �����Ƿ� �ڼ���
������ �װ��� �����϶�.
RequestHeader ���þ� �ڿ� �ൿ��
�Ͼ ������ �����ϴ� �߰� �ƱԸ�Ʈ�� �̸� ó���� ���ϴ� Ű����
early�� ���� �� �ִ�. env=...
�ƱԸ�Ʈ�� ����� ��� �ش� ȯ�溯����
�����Ѵٸ� (Ȥ�� env=!...�� ����
ȯ�溯���� �������� �ʴٸ�) RequestHeader
���þ �����Ѵ�. ���� ������ ���þ�� ��û�� �ƹ� ������
��ġ�� �ʴ´�.
�̸� ����� �ƴ϶�� fixup �ܰ迡��
��û�� �ش��ϴ� �ڵ鷯�� �����ϱ� ������
RequestHeader ���þ ó���Ѵ�.
���� �������� ���� Ȥ�� ����ġ �Է����Ͱ� ����� ����ų�
������ �� �ִ�.