<-
Apache > HTTP Server > Documentation > Version 2.4 > ���

����ġ ��� mod_version

������ ���:  en  |  ja  |  ko 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.
����:������ ����
����:Extension
����:version_module
�ҽ�����:mod_version.c
����:����ġ 2.1 ���ĺ���

���

���� �ٸ� ������ ������ ������ �ٷ��� �� ū ��Ʈ���� �׽�Ʈ������ ����ϱ����� �� ����� �������. �� ����� ���� �񱳳� ����ǥ������ ����Ͽ� �����ο� ���� �˻簡 ������ <IfVersion>�� �����Ѵ�.

����

<IfVersion 2.1.0>
# ���� ������ ������ ��Ȯ�� 2.1.0�̴�
</IfVersion>

<IfVersion >= 2.2>
# ��¥ ���ο� ����� ����Ѵ� :-)
</IfVersion>

�ٸ� ������ �Ʒ��� �����Ѵ�.

���þ��

top

<IfVersion> ���þ�

����:������ ������ ���´�
����:<IfVersion [[!]operator] version> ... </IfVersion>
������:�ּ�������, ����ȣ��Ʈ, directory, .htaccess
Override �ɼ�:All
����:Extension
���:mod_version

<IfVersion> ������ ������ ������ ���ϴ� ������ �����Ҷ��� ������ ���� ���þ ���´�. �Ϲ����� (����) ���� ��� version �ƱԸ�Ʈ�� 2.1.0�̳� 2.2�� ���� major[.minor[.patch]] �����̴�. minor�� patch�� ��� �ȴ�. �̵� ���ڰ� ���ٸ� 0�̶�� �����Ѵ�. ������ ���� ���� operator�� �����ϴ�.

operator����
= Ȥ�� == ������ ������ ����
> ���� ū ������ ����
>= ũ�ų� ���� ������ ����
< ���� ���� ������ ����
<= �۰ų� ���� ������ ����

����

<IfVersion >= 2.1>
# ������ 2.1.0 ���� ũ�ų� ��������
# �����Ѵ�.
</IfVersion>

���� �񱳿ܿ��� ����ǥ������ ����Ͽ� ������ ������ ������ �� �ִ�. ���⿡�� �ΰ��� ����� �ִ�.

operator����
= Ȥ�� == version�� /regex/ �����̴�
~ version�� regex �����̴�

����

<IfVersion = /^2.1.[01234]$/>
# ���� ���, ���⿡ ���װ� �ִ� Ư�� ������ ���� �ذ�å�� ���´� </IfVersion>

������ �տ� ����ǥ(!)�� ���� �ǹ̸� �ݴ�� �ؼ��Ѵ�.

<IfVersion !~ ^2.1.[01234]$>
# �� ������ �ƴϸ�
</IfVersion>

operator�� �����ϸ� =�̶�� �����Ѵ�.

������ ���:  en  |  ja  |  ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.