+++ /dev/null
-URI: cgi_path.html.en
-Content-Language: en
-Content-type: text/html; charset=ISO-8859-1
-
-URI: cgi_path.html.ja.euc-jp
-Content-Language: ja
-Content-type: text/html; charset=EUC-JP
-
-URI: cgi_path.html.ko.euc-kr
-Content-Language: ko
-Content-type: text/html; charset=EUC-KR
+++ /dev/null
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!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="en" xml:lang="en"><head><!--
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- This file is generated from xml source: DO NOT EDIT
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- -->
-<title>PATH_INFO Changes in the CGI Environment - 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/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">Glossary</a> | <a href="./sitemap.html">Sitemap</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>PATH_INFO Changes in the CGI Environment</h1>
-<div class="toplang">
-<p><span>Available Languages: </span><a href="./en/cgi_path.html" title="English"> en </a> |
-<a href="./ja/cgi_path.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
-<a href="./ko/cgi_path.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
-</div>
-
- <p>As implemented in Apache HTTP Server 1.1.1 and earlier versions, the
- method <code>httpd</code> used to create PATH_INFO in the CGI
- environment was counterintuitive, and could result in crashes in certain
- cases. In Apache HTTP Server 1.2 and beyond, this behavior has changed.
- Although this results in some compatibility problems with
- certain legacy CGI applications, the Apache 1.2 behavior is
- still compatible with the CGI/1.1 specification, and CGI
- scripts can be easily modified (<a href="#compat">see
- below</a>).</p>
- </div>
-<div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#prob">The Problem</a></li>
-<li><img alt="" src="./images/down.gif" /> <a href="#solution">The Solution</a></li>
-<li><img alt="" src="./images/down.gif" /> <a href="#compat">Compatibility with Previous Servers</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">The Problem</a></h2>
- <p>Apache HTTP Server 1.1.1 and earlier implemented the PATH_INFO and
- SCRIPT_NAME environment variables by looking at the filename,
- not the URL. While this resulted in the correct values in many
- cases, when the filesystem path was overloaded to contain path
- information, it could result in errant behavior. For example,
- if the following appeared in a config file:</p>
-
- <div class="example"><p><code>
- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
- </code></p></div>
-
- <p>In this case, <code>user.cgi</code> is the CGI script, the
- "<code>/ralph</code>" is information to be passed onto the CGI. If this
- configuration was in place, and a request came for
- "<code>/cgi-ralph/script/</code>", the code would set PATH_INFO
- to "<code>/ralph/script</code>", and SCRIPT_NAME to
- "<code>/cgi-</code>". Obviously, the latter is incorrect. In
- certain cases, this could even cause the server to crash.</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">The Solution</a></h2>
- <p>Apache HTTP Server 1.2 and later now determine SCRIPT_NAME and
- PATH_INFO by looking directly at the URL, and determining how much of
- the URL is client-modifiable, and setting PATH_INFO to it. To use
- the above example, PATH_INFO would be set to
- "<code>/script</code>", and SCRIPT_NAME to
- "<code>/cgi-ralph</code>". This makes sense and results in no
- server behavior problems. It also permits the script to be
- guaranteed that
- "<code>http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO</code>"
- will always be an accessible URL that points to the current
- script, something which was not necessarily true with previous
- versions of <code>httpd</code>.</p>
-
- <p>However, the "<code>/ralph</code>" information from the
- <code>Alias</code> directive is lost. This is unfortunate, but
- we feel that using the filesystem to pass along this sort of
- information is not a recommended method, and a script making
- use of it "deserves" not to work. Apache 1.2b3 and later,
- however, do provide <a href="#compat">a workaround.</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">Compatibility with Previous Servers</a></h2>
-
-
- <p>It may be necessary for a script that was designed for
- earlier versions of Apache HTTP Server or other servers to need the
- information that the old PATH_INFO variable provided. For this
- purpose, Apache 1.2 (1.2b3 and later) sets an additional
- variable, FILEPATH_INFO. This environment variable contains the
- value that PATH_INFO would have had with Apache 1.1.1.</p>
-
- <p>A script that wishes to work with both Apache 1.2 and
- earlier versions can simply test for the existence of
- FILEPATH_INFO, and use it if available. Otherwise, it can use
- PATH_INFO. For example, in Perl, one might use:</p>
-
- <div class="example"><p><code>
- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
- </code></p></div>
-
- <p>By doing this, a script can work with all servers supporting
- the CGI/1.1 specification, including all versions of
- Apache HTTP Server.</p>
- </div></div>
-<div class="bottomlang">
-<p><span>Available Languages: </span><a href="./en/cgi_path.html" title="English"> en </a> |
-<a href="./ja/cgi_path.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
-<a href="./ko/cgi_path.html" hreflang="ko" rel="alternate" title="Korean"> ko </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/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">Glossary</a> | <a href="./sitemap.html">Sitemap</a></p></div>
-</body></html>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="EUC-JP"?>
-<!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="ja" xml:lang="ja"><head><!--
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- This file is generated from xml source: DO NOT EDIT
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- -->
-<title>CGI ´Ä¶¤Ç¤Î PATH_INFO ¤ÎÊѹ¹ - Apache HTTP ¥µ¡¼¥Ð</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 ¥µ¡¼¥Ð ¥Ð¡¼¥¸¥ç¥ó 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 ¥µ¡¼¥Ð</a> > <a href="http://httpd.apache.org/docs-project/">¥É¥¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó</a> > <a href="./">¥Ð¡¼¥¸¥ç¥ó 2.1</a></div><div id="page-content"><div id="preamble"><h1>CGI ´Ä¶¤Ç¤Î PATH_INFO ¤ÎÊѹ¹</h1>
-<div class="toplang">
-<p><span>Available Languages: </span><a href="./en/cgi_path.html" hreflang="en" rel="alternate" title="English"> en </a> |
-<a href="./ja/cgi_path.html" title="Japanese"> ja </a> |
-<a href="./ko/cgi_path.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
-</div>
-<div class="outofdate">This translation may be out of date. Check the
- English version for recent changes.</div>
-
- <p>Apache 1.1.1 ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤¿
- CGI ´Ä¶¤Ç PATH_INFO ¤òºîÀ®¤¹¤ëÊýË¡¤Ïľ´ÑŪ¤Ç¤Ê¤¯¡¢
- ¾ì¹ç¤Ë¤è¤Ã¤Æ¤Ï¥¯¥é¥Ã¥·¥å¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤·¤¿¡£
- Apache 1.2 µÚ¤Ó¤½¤ì°Ê¹ß¤Ë¤ª¤¤¤Æ¡¢¤³¤ÎÆ°ºî¤¬Êѹ¹¤µ¤ì¤Þ¤·¤¿¡£
- ¤³¤Î¤³¤È¤Ë¤è¤êÆÃÄê¤Î¸Å¤¤ CGI ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤ª¤¤¤Æ¤¤¤¯¤Ä¤«
- ¸ß´¹À¤ÎÌäÂ꤬À¸¤¸¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ç¤â Apache 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>Apache 1.1.1 ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Ç¤Ï¡¢URL ¤Ç¤Ï¤Ê¤¯¥Õ¥¡¥¤¥ë̾¤ò»²¾È¤·¤Æ
- PATH_INFO ¤È SCRIPT_NAME ´Ä¶ÊÑ¿ô¤òÀßÄꤷ¤Æ¤¤¤Þ¤·¤¿¡£
- ¿¤¯¤Î¾ì¹ç¤Ï¤³¤ì¤¬Àµ¤·¤¤·ë²Ì¤òÊÖ¤·¤Þ¤¹¤¬¡¢¥Ñ¥¹¾ðÊó¤ò´Þ¤à¤è¤¦¤Ë
- filesystem ¥Ñ¥¹¤¬¥ª¡¼¥Ð¡¼¥í¡¼¥É¤µ¤ì¤¿¾ì¹ç¤Ï¡¢
- ¸í¤Ã¤¿·ë²Ì¤òÊÖ¤¹¾ì¹ç¤¬¤¢¤ê¤Þ¤·¤¿¡£
- ¤¿¤È¤¨¤Ð¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤Ë°Ê²¼¤¬¤¢¤ë¾ì¹ç</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_INFO ¤Ë¤Ï "<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>Apache 1.2 °Ê¹ß¤Ç¤Ï SCRIPT_NAME ¤È PATH_INFO ¤Î·èÄê¤Ë¤Ï URL
- ¤òľÀÜ»²¾È¤·¤Æ¡¢URL
- ¤Î¤É¤ì¤À¤±¤ÎÉôʬ¤¬¥¯¥é¥¤¥¢¥ó¥È¤¬Êѹ¹²Äǽ¤Ê¤Î¤«¤ò³ÎÄꤵ¤»¤¿¾å¤Ç
- 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 ¤Ç¤¢¤ë¤³¤È¤ò
- Êݾڤ·¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Apache
- ¤Ç¤Ïɬ¤º¤·¤â¤½¤¦¤È¤Ï¸Â¤é¤Ê¤«¤Ã¤¿¤³¤È¤Ç¤¹¡£
- </p>
-
- <p>¤·¤«¤· <code>Alias</code> ¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤«¤é¤Î
- "<code>/ralph</code>" ¾ðÊó¤Ï¼º¤ï¤ì¤Þ¤¹¡£
- ¤³¤ì¤Ï»ÄÇ°¤Ç¤¹¤¬¡¢filesystem ¤òÄ̤·¤Æ¤³¤Î¼ïÎà¤Î¾ðÊó¤ò
- ÅϤ¹¤Î¤ÏÁ¦¤á¤é¤ì¤¿ÊýË¡¤Ç¤Ï¤Ê¤¯¡¢
- ¤Þ¤¿¤½¤ì¤ò»È¤Ã¤¿¥¹¥¯¥ê¥×¥È¤ÏÆ°ºî¤·¤Ê¤¯¤Æ¤âÅöÁ³¤À¤È¹Í¤¨¤Þ¤¹¡£
- ¤¿¤À¤·¡¢Apache 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>°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Apache ¤ä¾¤Î¥µ¡¼¥Ð¸þ¤±¤ËÀ߷פµ¤ì¤¿
- ¥¹¥¯¥ê¥×¥È¤Ë¤Ï¸Å¤¤ PATH_INFO ÊÑ¿ô¤Ë¤è¤êÄ󶡤µ¤ì¤ë¾ðÊó¤¬
- ɬÍפǤ¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
- ¤³¤ÎÌÜŪ¤Î¤¿¤á¤Ë¡¢
- Apache 1.2 (1.2b3 °Ê¹ß) ¤Ç¤ÏÄɲäÎÊÑ¿ô¡¢FILEPATH_INFO
- ¤òÀßÄꤷ¤Þ¤¹¡£¤³¤Î´Ä¶ÊÑ¿ô¤Ë¤Ï¡¢Apache 1.1.1 ¤Ç
- PATH_INFO ¤Ç¤¢¤Ã¤¿¤Ç¤¢¤í¤¦Ãͤ¬ÀßÄꤵ¤ì¤Þ¤¹¡£</p>
-
- <p>Apache 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>¤³¤ì¤Ë¤è¤ê¡¢¥¹¥¯¥ê¥×¥È¤Ï¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Apache ¤ò´Þ¤à¡¢
- CGI/1.1 ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¹¤Ù¤Æ¤Î¥µ¡¼¥Ð¤ÇÆ°ºî¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
- </p>
- </div></div>
-<div class="bottomlang">
-<p><span>Available Languages: </span><a href="./en/cgi_path.html" hreflang="en" rel="alternate" title="English"> en </a> |
-<a href="./ja/cgi_path.html" title="Japanese"> ja </a> |
-<a href="./ko/cgi_path.html" hreflang="ko" rel="alternate" title="Korean"> ko </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>
\ No newline at end of file
+++ /dev/null
-<?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" hreflang="en" rel="alternate" title="English"> en </a> |
-<a href="./ja/cgi_path.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
-<a href="./ko/cgi_path.html" title="Korean"> ko </a></p>
-</div>
-<div class="outofdate">ÀÌ ¹®¼´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù.
- ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼¸¦ Âü°íÇϼ¼¿ä.</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"> en </a> |
-<a href="./ja/cgi_path.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
-<a href="./ko/cgi_path.html" title="Korean"> ko </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>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
-<?xml-stylesheet type="text/xsl" href="./style/manual.en.xsl"?>
-<!-- $Revision: 1.8 $ -->
-
-<!--
- Copyright 2002-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<manualpage metafile="cgi_path.xml.meta">
-
- <title>PATH_INFO Changes in the CGI Environment</title>
-
- <summary>
- <p>As implemented in Apache HTTP Server 1.1.1 and earlier versions, the
- method <code>httpd</code> used to create PATH_INFO in the CGI
- environment was counterintuitive, and could result in crashes in certain
- cases. In Apache HTTP Server 1.2 and beyond, this behavior has changed.
- Although this results in some compatibility problems with
- certain legacy CGI applications, the Apache 1.2 behavior is
- still compatible with the CGI/1.1 specification, and CGI
- scripts can be easily modified (<a href="#compat">see
- below</a>).</p>
- </summary>
-
- <section id="prob"><title>The Problem</title>
- <p>Apache HTTP Server 1.1.1 and earlier implemented the PATH_INFO and
- SCRIPT_NAME environment variables by looking at the filename,
- not the URL. While this resulted in the correct values in many
- cases, when the filesystem path was overloaded to contain path
- information, it could result in errant behavior. For example,
- if the following appeared in a config file:</p>
-
- <example>
- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
- </example>
-
- <p>In this case, <code>user.cgi</code> is the CGI script, the
- "<code>/ralph</code>" is information to be passed onto the CGI. If this
- configuration was in place, and a request came for
- "<code>/cgi-ralph/script/</code>", the code would set PATH_INFO
- to "<code>/ralph/script</code>", and SCRIPT_NAME to
- "<code>/cgi-</code>". Obviously, the latter is incorrect. In
- certain cases, this could even cause the server to crash.</p>
- </section>
-
- <section id="solution"><title>The Solution</title>
- <p>Apache HTTP Server 1.2 and later now determine SCRIPT_NAME and
- PATH_INFO by looking directly at the URL, and determining how much of
- the URL is client-modifiable, and setting PATH_INFO to it. To use
- the above example, PATH_INFO would be set to
- "<code>/script</code>", and SCRIPT_NAME to
- "<code>/cgi-ralph</code>". This makes sense and results in no
- server behavior problems. It also permits the script to be
- guaranteed that
- "<code>http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO</code>"
- will always be an accessible URL that points to the current
- script, something which was not necessarily true with previous
- versions of <code>httpd</code>.</p>
-
- <p>However, the "<code>/ralph</code>" information from the
- <code>Alias</code> directive is lost. This is unfortunate, but
- we feel that using the filesystem to pass along this sort of
- information is not a recommended method, and a script making
- use of it "deserves" not to work. Apache 1.2b3 and later,
- however, do provide <a href="#compat">a workaround.</a></p>
- </section>
-
- <section id="compat">
- <title>Compatibility with Previous Servers</title>
-
- <p>It may be necessary for a script that was designed for
- earlier versions of Apache HTTP Server or other servers to need the
- information that the old PATH_INFO variable provided. For this
- purpose, Apache 1.2 (1.2b3 and later) sets an additional
- variable, FILEPATH_INFO. This environment variable contains the
- value that PATH_INFO would have had with Apache 1.1.1.</p>
-
- <p>A script that wishes to work with both Apache 1.2 and
- earlier versions can simply test for the existence of
- FILEPATH_INFO, and use it if available. Otherwise, it can use
- PATH_INFO. For example, in Perl, one might use:</p>
-
- <example>
- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
- </example>
-
- <p>By doing this, a script can work with all servers supporting
- the CGI/1.1 specification, including all versions of
- Apache HTTP Server.</p>
- </section>
-</manualpage>
+++ /dev/null
-<?xml version="1.0" encoding="iso-2022-jp"?>
-<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
-<?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
-<!-- English Revision: 1.7 (outdated: 1.8) -->
-
-<!--
- Copyright 2002-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<manualpage metafile="cgi_path.xml.meta">
-
- <title>CGI \e$B4D6-$G$N\e(B PATH_INFO \e$B$NJQ99\e(B</title>
-
- <summary>
- <p>Apache 1.1.1 \e$B$*$h$S$=$l0JA0$N%P!<%8%g%s$G<BAu$5$l$F$$$?\e(B
- CGI \e$B4D6-$G\e(B PATH_INFO \e$B$r:n@.$9$kJ}K!$OD>4QE*$G$J$/!"\e(B
- \e$B>l9g$K$h$C$F$O%/%i%C%7%e$9$k$3$H$b$"$j$^$7$?!#\e(B
- Apache 1.2 \e$B5Z$S$=$l0J9_$K$*$$$F!"$3$NF0:n$,JQ99$5$l$^$7$?!#\e(B
- \e$B$3$N$3$H$K$h$jFCDj$N8E$$\e(B CGI \e$B%"%W%j%1!<%7%g%s$K$*$$$F$$$/$D$+\e(B
- \e$B8_49@-$NLdBj$,@8$8$k$3$H$,$"$j$^$9$,!"$=$l$G$b\e(B Apache 1.2 \e$B$NF0:n$O\e(B
- CGI/1.1 \e$B;EMM$H8_49$,$"$j!"\e(BCGI \e$B%9%/%j%W%H$OMF0W$K=$@5$G$-$^$9\e(B(<a
- href="#compat">\e$B0J2<;2>H\e(B</a>)\e$B!#\e(B</p>
- </summary>
-
- <section id="prob"><title>\e$BLdBj\e(B</title>
-
- <p>Apache 1.1.1 \e$B$*$h$S$=$l0JA0$G$O!"\e(BURL \e$B$G$O$J$/%U%!%$%kL>$r;2>H$7$F\e(B
- PATH_INFO \e$B$H\e(B SCRIPT_NAME \e$B4D6-JQ?t$r@_Dj$7$F$$$^$7$?!#\e(B
- \e$BB?$/$N>l9g$O$3$l$,@5$7$$7k2L$rJV$7$^$9$,!"%Q%9>pJs$r4^$`$h$&$K\e(B
- filesystem \e$B%Q%9$,%*!<%P!<%m!<%I$5$l$?>l9g$O!"\e(B
- \e$B8m$C$?7k2L$rJV$9>l9g$,$"$j$^$7$?!#\e(B
- \e$B$?$H$($P!"@_Dj%U%!%$%k$K0J2<$,$"$k>l9g\e(B</p>
-
- <example>
- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
- </example>
-
- <p>\e$B$3$N>l9g!"\e(B<code>user.cgi</code> \e$B$O\e(B CGI \e$B%9%/%j%W%H$G$"$j!"\e(B
- "/ralph" \e$B$O!"\e(BCGI \e$B$KEO$5$l$k>pJs$G$9!#$b$7>e$N@_Dj$,$J$5$l$F$$$F!"\e(B
- "<code>/cgi-ralph/script/</code>" \e$B$X$N%j%/%(%9%H$,Mh$l$P!"\e(B
- PATH_INFO \e$B$K$O\e(B "<code>/ralph/script/</code>" \e$B$,!"\e(B
- SCRIPT_NAME \e$B$K$O\e(B "<code>/cgi-</code>" \e$B$,@_Dj$5$l$^$9!#\e(B
- \e$BL@$i$+$K!"8e<T$O4V0c$C$F$$$^$9!#FCDj$N>l9g$K$O!"$3$l$K$h$j\e(B
- \e$B%5!<%P$,%/%i%C%7%e$9$k$3$H$5$($"$j$^$7$?!#\e(B</p>
- </section>
-
- <section id="solution"><title>\e$B2r7h\e(B</title>
- <p>Apache 1.2 \e$B0J9_$G$O\e(B SCRIPT_NAME \e$B$H\e(B PATH_INFO \e$B$N7hDj$K$O\e(B URL
- \e$B$rD>@\;2>H$7$F!"\e(BURL
- \e$B$N$I$l$@$1$NItJ,$,%/%i%$%"%s%H$,JQ992DG=$J$N$+$r3NDj$5$;$?>e$G\e(B
- PATH_INFO \e$B$r@_Dj$9$k$h$&$K$J$j$^$7$?!#>e$NNc$G$O!"\e(BPATH_INFO \e$B$K$O\e(B
- "<code>/script</code>" \e$B$,!"\e(BSCRIPT_NAME \e$B$K$O\e(B
- "<code>/cgi-ralph</code>" \e$B$,@_Dj$5$l$^$9!#\e(B
- \e$B$3$l$O@5$7$/!"$5$i$K!"%5!<%P$NF0:n$KLdBj$r5/$3$9$3$H$b$"$j$^$;$s!#$^$?!"\e(B
- "<code>http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO</code>"
- \e$B$,!">o$K:G?7$N%9%/%j%W%H$r;X$9!"%"%/%;%92DG=$J\e(B URL \e$B$G$"$k$3$H$r\e(B
- \e$BJ]>Z$7$^$9!#$3$l$O!"0JA0$N%P!<%8%g%s$N\e(B Apache
- \e$B$G$OI,$:$7$b$=$&$H$O8B$i$J$+$C$?$3$H$G$9!#\e(B
- </p>
-
- <p>\e$B$7$+$7\e(B <code>Alias</code> \e$B%G%#%l%/%F%#%V$+$i$N\e(B
- "<code>/ralph</code>" \e$B>pJs$O<:$o$l$^$9!#\e(B
- \e$B$3$l$O;DG0$G$9$,!"\e(Bfilesystem \e$B$rDL$7$F$3$N<oN`$N>pJs$r\e(B
- \e$BEO$9$N$OA&$a$i$l$?J}K!$G$O$J$/!"\e(B
- \e$B$^$?$=$l$r;H$C$?%9%/%j%W%H$OF0:n$7$J$/$F$bEvA3$@$H9M$($^$9!#\e(B
- \e$B$?$@$7!"\e(BApache 1.2b3 \e$B0J9_$G$O\e(B<a
- href="#compat">\e$BBeBX<jCJ\e(B</a>\e$B$rMQ0U$7$F$$$^$9!#\e(B</p>
- </section>
-
- <section id="compat">
- <title>\e$B0JA0$N%5!<%P$H$N8_49@-\e(B</title>
-
- <p>\e$B0JA0$N%P!<%8%g%s$N\e(B Apache \e$B$dB>$N%5!<%P8~$1$K@_7W$5$l$?\e(B
- \e$B%9%/%j%W%H$K$O8E$$\e(B PATH_INFO \e$BJQ?t$K$h$jDs6!$5$l$k>pJs$,\e(B
- \e$BI,MW$G$"$k$+$b$7$l$^$;$s!#\e(B
- \e$B$3$NL\E*$N$?$a$K!"\e(B
- Apache 1.2 (1.2b3 \e$B0J9_\e(B) \e$B$G$ODI2C$NJQ?t!"\e(BFILEPATH_INFO
- \e$B$r@_Dj$7$^$9!#$3$N4D6-JQ?t$K$O!"\e(BApache 1.1.1 \e$B$G\e(B
- PATH_INFO \e$B$G$"$C$?$G$"$m$&CM$,@_Dj$5$l$^$9!#\e(B</p>
-
- <p>Apache 1.2 \e$B$*$h$S$=$l0JA0$N%P!<%8%g%s$NN>J}$GF0:n$5$;$?$$%9%/%j%W%H$O!"\e(B
- FILEPATH_INFO \e$B$NB8:_$rC1$KD4$Y$F!"$=$l$,$"$l$P\e(B
- \e$B;H$&!"$H$$$&$3$H$,$G$-$^$9!#$=$&$G$J$1$l$P!"\e(BPATH_INFO
- \e$B$r;H$&$3$H$,$G$-$^$9!#$?$H$($P!"\e(BPerl \e$B$G$O<!$N$b$N$r;H$&$3$H$,$G$-$^$9\e(B</p>
-
- <example>
- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
- </example>
-
- <p>\e$B$3$l$K$h$j!"%9%/%j%W%H$O$9$Y$F$N%P!<%8%g%s$N\e(B Apache \e$B$r4^$`!"\e(B
- CGI/1.1 \e$B$r%5%]!<%H$9$k$9$Y$F$N%5!<%P$GF0:n$9$k$3$H$,$G$-$^$9!#\e(B
- </p>
- </section>
-</manualpage>
+++ /dev/null
-<?xml version="1.0" encoding="EUC-KR" ?>
-<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
-<?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
-<!-- English Revision: 1.7 (outdated: 1.8) -->
-
-<!--
- Copyright 2003-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<manualpage metafile="cgi_path.xml.meta">
-
- <title>CGI ȯ°æ¿¡¼ PATH_INFOÀÇ º¯È</title>
-
- <summary>
- <p>¾ÆÆÄÄ¡ 1.1.1°ú ±× ÀÌÀü ¹öÀüÀÇ °æ¿ì CGI ȯ°æ¿¡¼
- PATH_INFO¸¦ ¸¸µå´Â ¹æ¹ýÀÌ Á÷°üÀûÀÌÁö ¾Ê°í ¾î¶² °æ¿ì ¼¹ö¸¦
- Á×À̱⵵ Çß´Ù. ¾ÆÆÄÄ¡ 1.2 ÀÌÈÄ ÀÌ ¹æ¹ýÀÌ º¯Çß´Ù. ±âÁ¸ÀÇ
- ¾î¶² CGI ÇÁ·Î±×·¥µé°ú ¾à°£ÀÇ È£È¯¹®Á¦°¡ ÀÖÁö¸¸
- ¾ÆÆÄÄ¡ 1.2ÀÇ ÇൿÀº ¾ÆÁ÷µµ CGI/1.1 ±Ô¾àÀ» ¹ù¾î³ªÁö¾ÊÀ¸¸ç,
- ½±°Ô CGI ½ºÅ©¸³Æ®¸¦ ¼öÁ¤ÇÒ ¼ö ÀÖ´Ù. (<a href="#compat">¾Æ·¡
- Âü°í</a>)</p>
- </summary>
-
- <section id="prob"><title>¹®Á¦Á¡</title>
- <p>¾ÆÆÄÄ¡ 1.1.1°ú ±× ÀÌÀü ¹öÀüÀº URL ´ë½Å ÆÄÀϸíÀ»
- °¡Áö°í PATH_INFO¿Í SCRIPT_NAME ȯ°æº¯¼ö¸¦ ±¸ÇöÇß´Ù. ¸¹Àº
- °æ¿ì ¿Ã¹Ù¸¥ °á°ú¸¦ ¾òÁö¸¸, ÆÄÀϽýºÅÛ °æ·Î°¡ path
- Á¤º¸¸¦ Æ÷ÇÔÇÑ´Ù¸é À߸øµÈ °á°ú°¡ ³ª¿Ã ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î,
- ¼³Á¤ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀÌ ÀÖ´Ù¸é:</p>
-
- <example>
- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
- </example>
-
- <p>ÀÌ °æ¿ì <code>user.cgi</code>´Â CGI ½ºÅ©¸³Æ®ÀÌ°í, "/ralph"´Â
- CGI¿¡ ³Ñ°ÜÁö´Â Á¤º¸´Ù. ÀÌ °æ¿ì
- "<code>/cgi-ralph/script/</code>"·Î ¿äûÀÌ µé¾î¿À¸é PATH´Â
- "<code>/ralph/script</code>"°¡ µÇ°í, SCRIPT_NAMEÀº
- "<code>/cgi-</code>"°¡ µÈ´Ù. ÈÄÀÚ´Â ºÐ¸íÈ÷ À߸øµÇ¾ú´Ù.
- ½ÉÁö¾î ¾î¶² °æ¿ì ¼¹ö°¡ Áױ⵵ ÇÑ´Ù.</p>
- </section>
-
- <section id="solution"><title>ÇØ°áÃ¥</title>
- <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>
- </section>
-
- <section id="compat">
- <title>ÀÌÀü ¼¹ö¿Í ȣȯ¼º</title>
-
- <p>¾ÆÆÄÄ¡ ÀÌÀü ¹öÀüÀ̳ª ´Ù¸¥ ¼¹ö¿ëÀ¸·Î ¼³°èµÈ ½ºÅ©¸³Æ®´Â
- ÀÌÀü PATH_INFO º¯¼ö°¡ Á¦°øÇß´ø Á¤º¸°¡ ÇÊ¿äÇÒ ¼ö ÀÖ´Ù. ±×·¡¼
- ¾ÆÆÄÄ¡ 1.2 (1.2b3 ÀÌÈÄ)´Â FILEPATH_INFO¶ó´Â º¯¼ö¸¦ ´õ ¼³Á¤ÇÑ´Ù.
- ÀÌ È¯°æº¯¼ö´Â ¾ÆÆÄÄ¡ 1.1.1ÀÇ PATH_INFO °ªÀ» °¡Áø´Ù.</p>
-
- <p>½ºÅ©¸³Æ®°¡ ¾ÆÆÄÄ¡ 1.2¿Í ÀÌÀü ¹öÀü ¸ðµÎ¿¡¼ µ¿ÀÛÇÏ°ÔÇÏ·Á¸é,
- ¸ÕÀú FILEPATH_INFO°¡ ÀÖ´ÂÁö °Ë»çÇÏ°í ÀÖ´Ù¸é ±×°ÍÀ»
- »ç¿ëÇÑ´Ù. ¾ø´Ù¸é PATH_INFO¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î,
- Perl·Î´Â ´ÙÀ½°ú °°´Ù:</p>
-
- <example>
- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
- </example>
-
- <p>ÀÌ·¸°Ô ÇÏ¸é ¸ðµç ¾ÆÆÄÄ¡¸¦ Æ÷ÇÔÇÏ¿© CGI/1.1 ±ÔÁ¤À» µû¸£´Â
- ¸ðµç ¼¹ö¿¡¼ ½ºÅ©¸³Æ®°¡ µ¿ÀÛÇÒ ¼ö ÀÖ´Ù.</p>
- </section>
-</manualpage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<metafile>
- <basename>cgi_path</basename>
- <path>/</path>
- <relpath>.</relpath>
-
- <variants>
- <variant>en</variant>
- <variant outdated="yes">ja</variant>
- <variant outdated="yes">ko</variant>
- </variants>
-</metafile>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section"><h2><a name="misc" id="misc">Weitere Apache-Dokumentationen</a></h2>
<ul><li class="separate"><a href="misc/">Übersicht</a></li>
-<li><a href="cgi_path.html">PATH_INFO-Änderungen in der CGI-Umgebung</a></li>
<li><a href="misc/relevant_standards.html">Wichtige Standards</a></li>
</ul>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section"><h2><a name="misc" id="misc">Apache Miscellaneous Documentation</a></h2>
<ul><li class="separate"><a href="misc/">Overview</a></li>
-<li><a href="cgi_path.html">PATH_INFO Changes in the CGI Environment</a></li>
<li><a href="misc/relevant_standards.html">Relevant Standards</a></li>
</ul>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section"><h2><a name="misc" id="misc">Documentación adicional sobre Apache</a></h2>
<ul><li class="separate"><a href="misc/">Visión General</a></li>
-<li><a href="cgi_path.html">Cambios en PATH_INFO en el entorno CGI</a></li>
<li><a href="misc/relevant_standards.html">Estándares Importantes</a></li>
</ul>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section"><h2><a name="misc" id="misc">Apache ¤½¤Î¾</a></h2>
<ul><li class="separate"><a href="misc/">³µÎ¬</a></li>
-<li><a href="cgi_path.html">CGI ´Ä¶¤Î PATH_INFO ¤ÎÊѹ¹</a></li>
<li><a href="misc/relevant_standards.html">´ØÏ¢¤¹¤ëɸ½àµ¬³Ê</a></li>
</ul>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section"><h2><a name="misc" id="misc">±âŸ ¾ÆÆÄÄ¡ ¹®¼</a></h2>
<ul><li class="separate"><a href="misc/">°³¿ä</a></li>
-<li><a href="cgi_path.html">CGI ȯ°æ¿¡¼ PATH_INFOÀÇ º¯È</a></li>
<li><a href="misc/relevant_standards.html">°ü·ÃµÈ Ç¥Áصé</a></li>
</ul>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sitemap SYSTEM "./style/sitemap.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.en.xsl"?>
-<!-- $Revision: 1.37 $ -->
+<!-- $Revision: 1.38 $ -->
<!--
Copyright 2002-2004 The Apache Software Foundation
<category id="misc">
<title>Apache Miscellaneous Documentation</title>
<page separate="yes" href="misc/">Overview</page>
-<page href="cgi_path.html">PATH_INFO Changes in the CGI Environment</page>
<page href="misc/relevant_standards.html">Relevant Standards</page>
</category>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sitemap SYSTEM "./style/sitemap.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.de.xsl"?>
-<!-- English Revision: 1.37 -->
+<!-- English Revision: 1.38 -->
<!--
Copyright 2002-2004 The Apache Software Foundation
<category id="misc">
<title>Weitere Apache-Dokumentationen</title>
<page separate="yes" href="misc/">Übersicht</page>
-<page href="cgi_path.html">PATH_INFO-Änderungen in der CGI-Umgebung</page>
<page href="misc/relevant_standards.html">Wichtige Standards</page>
</category>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sitemap SYSTEM "./style/sitemap.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.es.xsl"?>
-<!-- English Revision: 1.37 -->
+<!-- English Revision: 1.38 -->
<!--
Copyright 2004 The Apache Software Foundation
<category id="misc">
<title>Documentación adicional sobre Apache</title>
<page separate="yes" href="misc/">Visión General</page>
-<page href="cgi_path.html">Cambios en PATH_INFO en el entorno CGI</page>
<page href="misc/relevant_standards.html">Estándares Importantes</page>
</category>
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE sitemap SYSTEM "./style/sitemap.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
-<!-- English Revision: 1.37 -->
+<!-- English Revision: 1.38 -->
<!--
Copyright 2002-2004 The Apache Software Foundation
<category id="misc">
<title>Apache \e$B$=$NB>\e(B</title>
<page separate="yes" href="misc/">\e$B35N,\e(B</page>
-<page href="cgi_path.html">CGI \e$B4D6-$N\e(B PATH_INFO \e$B$NJQ99\e(B</page>
<page href="misc/relevant_standards.html">\e$B4XO"$9$kI8=`5,3J\e(B</page>
</category>
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE sitemap SYSTEM "./style/sitemap.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
-<!-- English Revision: 1.37 -->
+<!-- English Revision: 1.38 -->
<!--
Copyright 2003-2004 The Apache Software Foundation
<category id="misc">
<title>±âŸ ¾ÆÆÄÄ¡ ¹®¼</title>
<page separate="yes" href="misc/">°³¿ä</page>
-<page href="cgi_path.html">CGI ȯ°æ¿¡¼ PATH_INFOÀÇ º¯È</page>
<page href="misc/relevant_standards.html">°ü·ÃµÈ Ç¥Áصé</page>
</category>