blob: 078013136ea09a593187940bc31676cf662822b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>CGI ȯ�濡�� PATH_INFO�� ��ȭ - Apache HTTP Server</title>
<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
<link href="./images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="./mod/">���</a> | <a href="./mod/directives.html">���þ��</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">���</a> | <a href="./sitemap.html">����Ʈ��</a></p>
<p class="apache">Apache HTTP Server Version 2.1</p>
<img alt="" src="./images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="./">Version 2.1</a></div><div id="page-content"><div id="preamble"><h1>CGI ȯ�濡�� PATH_INFO�� ��ȭ</h1>
<div class="toplang">
<p><span>������ ���: </span><a href="./en/cgi_path.html"> en </a> | <a href="./ja/cgi_path.html"> ja </a> | <a href="./ko/cgi_path.html"> ko </a></p>
</div>
<p>����ġ 1.1.1�� �� ���� ������ ��� CGI ȯ�濡��
PATH_INFO�� ����� ����� ���������� �ʰ� � ��� ������
���̱ �ߴ�. ����ġ 1.2 ���� �� ����� ���ߴ�. ������
� CGI ���α���� �ణ�� ȣȯ������ ������
����ġ 1.2�� �ൿ�� ������ CGI/1.1 �Ծ��� �����������,
���� CGI ��ũ��Ʈ�� ������ �� �ִ�. (<a href="#compat">�Ʒ�
����</a>)</p>
</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#prob">������</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#solution">�ذ�å</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#compat">���� ������ ȣȯ��</a></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="prob" id="prob">������</a></h2>
<p>����ġ 1.1.1�� �� ���� ������ URL ��� ���ϸ���
������ PATH_INFO�� SCRIPT_NAME ȯ�溯���� �����ߴ�. ����
��� �ùٸ� ����� ������, ���Ͻý��� ��ΰ� path
������ �����Ѵٸ� �߸��� ����� ���� �� �ִ�. ���� ���,
�������Ͽ� ������ ���� ������ �ִٸ�:</p>
<div class="example"><p><code>
Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
</code></p></div>
<p>�� ��� <code>user.cgi</code>�� CGI ��ũ��Ʈ�̰�, "/ralph"��
CGI�� �Ѱ����� ������. �� ���
"<code>/cgi-ralph/script/</code>"�� ��û�� ������ PATH��
"<code>/ralph/script</code>"�� �ǰ�, SCRIPT_NAME��
"<code>/cgi-</code>"�� �ȴ�. ���ڴ� �и��� �߸��Ǿ���.
������ � ��� ������ �ױ �Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="solution" id="solution">�ذ�å</a></h2>
<p>����ġ 1.2 ���Ŀ����� URL���� Ŭ���̾�Ʈ�� ����������
�κ��� �Ǵ��Ͽ� SCRIPT_NAME�� PATH_INFO�� �����Ѵ�. ����
������ PATH_INFO�� "<code>/script</code>"�� �ǰ�, SCRIPT_NAME��
"<code>/cgi-ralph</code>"�� �ȴ�. �̴� �ո����̸� ������
������ ����Ű�� �ʴ´�. ��, ���� ������ �� ��ũ��Ʈ����
"<code>http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO</code>"��
���� ��ũ��Ʈ�� ����Ű�� URL���� ������ �� �ִ�.</p>
<p>���� �������� <code>Alias</code> ���þ���
"<code>/ralph</code>" ������ �������. ���� �츮��
���Ͻý����� ����Ͽ� �̷� ������ �Ѱ��ִ� ���� �ٶ�����
����� �ƴϸ�, �̸� ����ϴ� ��ũ��Ʈ�� �۵���"������"
�ʴٰ� �����Ѵ�. ���� ����ġ 1.2b3 ���Ŀ��� �̿� ����
<a href="#compat">�ذ�å</a>�� �ִ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="compat" id="compat">���� ������ ȣȯ��</a></h2>
<p>����ġ ���� �����̳� �ٸ� ���������� ����� ��ũ��Ʈ��
���� PATH_INFO ������ �����ߴ� ������ �ʿ��� �� �ִ�. ����
����ġ 1.2 (1.2b3 ����)�� FILEPATH_INFO��� ������ �� �����Ѵ�.
�� ȯ�溯���� ����ġ 1.1.1�� PATH_INFO ���� ������.</p>
<p>��ũ��Ʈ�� ����ġ 1.2�� ���� ���� ��ο��� �����ϰ��Ϸ���,
���� FILEPATH_INFO�� �ִ��� �˻��ϰ� �ִٸ� �װ���
����Ѵ�. ���ٸ� PATH_INFO�� ����Ѵ�. ���� ���,
Perl�δ� ������ ����:</p>
<div class="example"><p><code>
$path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
</code></p></div>
<p>�̷��� �ϸ� ��� ����ġ�� �����Ͽ� CGI/1.1 ������ ������
��� �������� ��ũ��Ʈ�� ������ �� �ִ�.</p>
</div></div>
<div class="bottomlang">
<p><span>������ ���: </span><a href="./en/cgi_path.html"> en </a> | <a href="./ja/cgi_path.html"> ja </a> | <a href="./ko/cgi_path.html"> ko </a></p>
</div><div id="footer">
<p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
<p class="menu"><a href="./mod/">���</a> | <a href="./mod/directives.html">���þ��</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">���</a> | <a href="./sitemap.html">����Ʈ��</a></p></div>
</body></html>
|