Apache HTTP Server Version 2.4

| ����: | ���Ͻý����� �ٸ� �κе��� ���� ���������� �����ϰ�, URL �����̷����� �����Ѵ� |
|---|---|
| ����: | Base |
| ����: | alias_module |
| �ҽ�����: | mod_alias.c |
�� ����� �����ϴ� ���þ���� ����Ͽ� ������ ��û��
������ URL�� �����ϰų� ������ �� �ִ�. Alias�� ScriptAlias ���þ�� URL��
���Ͻý��� ��η� �����Ѵ�. ���� DocumentRoot �Ʒ��� ���� ������
������ ������ �� �ִ�. ��, ScriptAlias ���þ�� ������
���丮�� CGI ��ũ��Ʈ�ۿ� ���ٰ� �˸���.
Redirect ���þ��
Ŭ���̾�Ʈ���� �ٸ� URL�� ���ο� ��û�� �ϵ��� �����Ѵ�.
�ڿ��� ���ο� ��ҷ� �ű� ��� ���� ����Ѵ�.
mod_alias�� ������ URL ������ ����
����Ǿ���. ���ǹ��ڿ� ���۰� ���� ������ �۾���
mod_rewrite�� �����ϴ� ����� �̿��϶�.
���� �ٸ� �����ҿ��� Alias�� Redirect�� ����ϸ� �ٸ� ���þ��
���� ǥ�� ���� �����
���� ó���Ѵ�. ���� ���� �����ҿ� (���� ���, ���� <VirtualHost> ���ǿ�)
Alias�� Redirect�� ����ϸ� �Ʒ� ������� ó���Ѵ�.
���� ��� Redirect�� ó���� �� Alias�� ó���Ѵ�. ����
Redirect�� RedirectMatch�� �ش��ϴ� ��û��
����� Alias���� �ʴ´�. ���� Alias�� Redirect�� �������Ͽ���
ù��°�� ������ ���� ����Ѵ�.
���� ���� ���þ ������ ������ο� �ش��ϴ� ��� ��� ���þ �����ϱ����ؼ��� ���� ���� ��θ� ���� ����ؾ� �Ѵ�. ���� ���, ���� ������ �ǵ��Ѵ�� �����Ѵ�:
Alias /foo/bar /baz
Alias /foo /gaq
���� ���� �� ���þ� ������ �ٲٸ� /foo/bar
Alias ������
/foo Alias��
�����ϹǷ� �� �ι�° ���þ �����Ѵ�.
| ����: | URL�� Ư�� ���Ͻý��� ��ҷ� �����Ѵ� |
|---|---|
| ����: | Alias URL-path
file-path|directory-path |
| ������: | �ּ�������, ����ȣ��Ʈ |
| ����: | Base |
| ���: | mod_alias |
Alias ���þ ����ϸ� ���Ͻý��ۿ���
DocumentRoot �ۿ� �ִ�
������ ������ �� �ִ�. url-path�� �����ϴ�
(%�� ���ڵ���) URL�� directory-path�� �����ϴ�
���Ͽ� �����Ѵ�.
Alias /image /ftp/pub/image
http://myserver/image/foo.gif�� ��û�ϸ� ������ /ftp/pub/image/foo.gif ������ �Ѱ��ش�.
url-path ���� /�� �����ϸ�, URL ���� /��
����ؾ߸� ������ ������ �����϶�. ��, Alias /icons/
/usr/local/apache/icons/ ������ url /icons��
���谡 ����.
������ ����� �����ϴ� ���� <Directory> ������
�ʿ������� ��. �� ���þ�� <Directory> ������ �˻��ϱ� ����
ó���ϹǷ�, ������ ��� ������ ������ �´�. (����
<Location>
������ �� ���þ ó���ϱ� ���� �ѹ��� �˻��ϹǷ� ������
URL ���� ��ü�� ������ �ش�.)
Ư�� DocumentRoot
�ۿ� �ִ� ���丮�� Alias�� ������ٸ�, ����
��� ���丮�� ������ �������� �Ѵ�.
Alias /image /ftp/pub/image
<Directory /ftp/pub/image>
Order allow,deny
Allow from all
</Directory>
| ����: | ����ǥ������ ����Ͽ� URL�� ���Ͻý��� ��ҷ� �����Ѵ� |
|---|---|
| ����: | AliasMatch regex
file-path|directory-path |
| ������: | �ּ�������, ����ȣ��Ʈ |
| ����: | Base |
| ���: | mod_alias |
�� ���þ�� Alias��
������, ������ URL�� �պκи� ���ϴ� ��� ǥ�� ����ǥ������
����Ѵ�. ������ ����ǥ������ URL ��ο� ���Ͽ� �´ٸ�,
������ ��ȣ�� ���� �κ��� ��ü�Ͽ� ���ϸ����� ����Ѵ�.
���� ���, ������ ���� /icons ���丮�� �����
�� �ִ�:
AliasMatch ^/icons(.*) /usr/local/apache/icons$1
| ����: | Ŭ���̾�Ʈ�� �ٸ� URL�� �����ϵ��� ��û�ϴ� �ܺ� �����̷����� ������ |
|---|---|
| ����: | Redirect [status] URL-path
URL |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Base |
| ���: | mod_alias |
Redirect ���þ�� ���� URL�� ���ο� URL�� �����Ѵ�. Ŭ���̾�Ʈ���� ���ο� URL�� ������, Ŭ���̾�Ʈ�� ���ο� �ּҷ� �ٽ� �ѹ� �����Ѵ�. (%�� ���ڵ���) URL-path�� �����ϴ� ��û�� ������ (%�� ���ڵ���) URL�� �����ϴ� ���ο� URL�� �����̷��� ������ ������.
Redirect /service http://foo2.bar.com/service
Ŭ���̾�Ʈ�� http://myserver/service/foo.txt�� ��û�ϸ� ��� http://foo2.bar.com/service/foo.txt�� �����϶�� ������ �´�.
Redirect ���þ�� �������Ͽ���
������ ������ ������� Alias�� ScriptAlias ���þ�� �켱������
����. ��, .htaccess �����̳� <Directory> ���ǿ��� ����ϴ���
URL-path���� ����ΰ� �ƴ϶� �ݵ�� ������ URL��
����ؾ� �Ѵ�.
status �ƱԸ�Ʈ�� ��������������, "�ӽ� (temporary)" (HTTP ���� 302) �����̷����� ������. ��, Ŭ���̾�Ʈ���� �ڿ��� �ӽ÷� �Ű�ٰ� �˸���. status �ƱԸ�Ʈ�� ����Ͽ� �ٸ� HTTP �����ڵ带 ��ȯ�� �� �ִ�:
status�� ���� �����ڵ带 ����Ͽ� �ٸ� �����ڵ嵵
��ȯ�� �� �ִ�. ���°� 300�� 399 ���̶�� URL
�ƱԸ�Ʈ�� ����ؾ� �ϰ�, �ƴ϶�� �����ؾ� �Ѵ�. ��, ����ġ
�ڵ忡 ���°� ���ǵ��־�� �Ѵ� (http_protocol.c��
send_error_response �Լ� ����).
Redirect permanent /one http://example.com/two
Redirect 303 /three http://example.com/other
| ����: | ���� URL�� ����ǥ���Ŀ� �ش��ϸ� �ܺ� �����̷����� ������ |
|---|---|
| ����: | RedirectMatch [status] regex
URL |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Base |
| ���: | mod_alias |
�� ���þ�� Redirect�� ������, ������
URL�� �պκи� ���ϴ� ��� ǥ�� ����ǥ������ ����Ѵ�.
������ ����ǥ������ URL ��ο� ���Ͽ� �´ٸ�, ������ ��ȣ��
���� �κ��� ��ü�Ͽ� ���ϸ����� ����Ѵ�. ���� ���, ������
��� GIF ���� ��û�� ���� �ٸ� ������ ����� �̸��� ����
JPEG ���Ϸ� �����̷����� ������:
RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
| ����: | Ŭ���̾�Ʈ�� �ٸ� URL�� �����ϵ��� ��û�ϴ� �ܺ� ���� �����̷����� ������ |
|---|---|
| ����: | RedirectPermanent URL-path URL |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Base |
| ���: | mod_alias |
�� ���þ�� Ŭ���̾�Ʈ���� �����̷����� ���������� (����
301) �˸���. Redirect permanent�� ��Ȯ�� ����.
| ����: | Ŭ���̾�Ʈ�� �ٸ� URL�� �����ϵ��� ��û�ϴ� �ܺ� �ӽ� �����̷����� ������ |
|---|---|
| ����: | RedirectTemp URL-path URL |
| ������: | �ּ�������, ����ȣ��Ʈ, directory, .htaccess |
| Override �ɼ�: | FileInfo |
| ����: | Base |
| ���: | mod_alias |
�� ���þ�� Ŭ���̾�Ʈ���� �����̷����� �ӽ������� (����
302) �˸���. Redirect temp�� ��Ȯ�� ����.
| ����: | URL�� Ư�� ���Ͻý��� ��ҷ� �����ϰ� ����� CGI ��ũ��Ʈ��� �˸��� |
|---|---|
| ����: | ScriptAlias URL-path
file-path|directory-path |
| ������: | �ּ�������, ����ȣ��Ʈ |
| ����: | Base |
| ���: | mod_alias |
ScriptAlias ���þ�� Alias ���þ�� ���������,
�߰��� ��� ���丮�� mod_cgi�� cgi-script
�ڵ鷯�� ó���� CGI ��ũ��Ʈ�� �ִٰ� �˸���.
URL-path�� �����ϴ� (%�� ���ڵ���) URL�� ���Ͻý�����
�������� �ι�° �ƱԸ�Ʈ�� �����ϴ� ��ũ��Ʈ�� �����Ѵ�.
ScriptAlias /cgi-bin/ /web/cgi-bin/
http://myserver/cgi-bin/foo�� ��û�ϸ� ������
/web/cgi-bin/foo ��ũ��Ʈ�� �����Ѵ�.
| ����: | ����ǥ������ ����Ͽ� URL�� Ư�� ���Ͻý��� ��ҷ� �����ϰ� ����� CGI ��ũ��Ʈ��� �˸��� |
|---|---|
| ����: | ScriptAliasMatch regex
file-path|directory-path |
| ������: | �ּ�������, ����ȣ��Ʈ |
| ����: | Base |
| ���: | mod_alias |
�� ���þ�� ScriptAlias�� ������, ������
URL�� �պκи� ���ϴ� ��� ǥ�� ����ǥ������ ����Ѵ�.
������ ����ǥ������ URL ��ο� ���Ͽ� �´ٸ�, ������ ��ȣ��
���� �κ��� ��ü�Ͽ� ���ϸ����� ����Ѵ�. ���� ���, ������
���� ǥ������ /cgi-bin�� ����� �� �ִ�:
ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1