Apache HTTP Server Version 2.4
IP����̶� ���� �ǹ��ϵ��� ������ IP��� ����ȣ��Ʈ ������ ���� �ٸ� IP �ּҸ� �������Ѵ�. �̴� ��ǻ�� ���������� ���� ��Ʈ���� �����ϰų�, �ֱ� �ü������ �����ϴ� ���� �������̽��� (�ڼ��� ������ �ý��� ������ �����϶�. ���� "ip aliases"��� �ϸ�, ���� "ifconfig" ���ɾ�� �����) ����Ͽ� �����ϴ�.
���� ȣ��Ʈ�� �����ϵ��� ����ġ�� �����ϴ� ����� �ΰ�����. �ϳ��� �� ȣ��Ʈ���� ������ �������� �����ϴ� ���̰�, �ٸ� �ϳ��� ��� ����ȣ��Ʈ�� �����ϴ� ���� �Ѱ��� �����ϴ� ����̴�.
���� ���� ������ ����ϳ�:
User
, Group
, Listen
, ServerRoot
�������� �����ؾ� �Ѵ�.Listen
�� ���� �ִ�. ����
� ���������� Ư�� �ּҸ� ��ٸ� �ʿ䰡 �ִٸ�, (��
�������� �� �ּҸ� ������ ��� �ּҸ� ��ٸ��� �ٸ� ��
�������� ������ �ּҸ� ��ٸ� �� ������) ������ �ּ�
��θ� ��ٷ��� �Ѵ�.���� ���� �Ѱ��� ����ϳ�:
�� ����ȣ��Ʈ���� �������� ��ġ�Ѵ�. ����������
Listen
���þ
������ ������ IP �ּ�(Ȥ�� ����ȣ��Ʈ)�� �����ش�. ����
���,
Listen www.smallco.com:80
ȣ��Ʈ�� ���ٴ� IP �ּҸ� ����ϱ� �ٶ���. (DNS ���� ����)
�� ��� ������ �Ѱ��� �ּ����� ��� ����ȣ��Ʈ�� ����
��û�� �����Ѵ�. ���������� VirtualHost
���þ ����ȣ��Ʈ����
�ٸ� ServerAdmin
,
ServerName
, DocumentRoot
, ErrorLog
, TransferLog
,
CustomLog
���þ� ���� �����Ѵ�. ���� ���,
<VirtualHost www.smallco.com>
ServerAdmin [email protected]
DocumentRoot /groups/smallco/www
ServerName www.smallco.com
ErrorLog /groups/smallco/logs/error_log
TransferLog /groups/smallco/logs/access_log
</VirtualHost>
<VirtualHost www.baygroup.org>
ServerAdmin [email protected]
DocumentRoot /groups/baygroup/www
ServerName www.baygroup.org
ErrorLog /groups/baygroup/logs/error_log
TransferLog /groups/baygroup/logs/access_log
</VirtualHost>
ȣ��Ʈ�� ���ٴ� IP �ּҸ� ����ϱ� �ٶ���. (DNS ���� ����)
VirtualHost ���þ� �ȿ����� ���μ��� ������ ��Ÿ ��� ���þ �����ϰ� ���� ��� �������þ ����� �� �ִ�. VirtualHost ���þ� �ȿ��� ���þ ����� �� �ִ��� �˷��� ���þ� ������� �������� Ȯ���϶�.
suEXEC �����
����Ѵٸ� VirtualHost ���þ� �ȿ� User
�� Group
�� ����� �� �ִ�.
����: ������ �����ϴ� ����ڿܿ� �ٸ� ������� �α������� �ִ� ���丮�� ��������� �ִٸ� ���� ������ �����϶�. �ڼ��� ������ ���� ���� �����϶�.