cgi_path.html.ko.euc-kr revision 71fccc298df6a1540d408151a26aa22beed55d0b
<?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="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs-project/">Documentation</a> &gt; <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" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="/ja/cgi_path.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="/ko/cgi_path.html" title="Korean">&nbsp;ko&nbsp;</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" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="/ja/cgi_path.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="/ko/cgi_path.html" title="Korean">&nbsp;ko&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</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>