From: André Malo Date: Sun, 15 Aug 2004 14:36:47 +0000 (+0000) Subject: Remove "PATH_INFO Changes in CGI Environment" documentation. X-Git-Tag: STRIKER_2_1_0_RC1~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f9bdb1caac0a71e36e3126f0661fae2726badb4;p=apache Remove "PATH_INFO Changes in CGI Environment" documentation. Reason: It's outdated and wrong. For 7 years and 3 months. The behaviour was changed back during Apache 1.2 (!) development. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104662 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/cgi_path.html b/docs/manual/cgi_path.html deleted file mode 100644 index 368d1c17c2..0000000000 --- a/docs/manual/cgi_path.html +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/docs/manual/cgi_path.html.en b/docs/manual/cgi_path.html.en deleted file mode 100644 index 2c7622e14d..0000000000 --- a/docs/manual/cgi_path.html.en +++ /dev/null @@ -1,115 +0,0 @@ - - - -PATH_INFO Changes in the CGI Environment - Apache HTTP Server - - - - - -
<-
-
-Apache > HTTP Server > Documentation > Version 2.1

PATH_INFO Changes in the CGI Environment

-
-

Available Languages:  en  | - ja  | - ko 

-
- -

As implemented in Apache HTTP Server 1.1.1 and earlier versions, the - method httpd 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 (see - below).

-
- -
top
-
-

The Problem

-

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:

- -

- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph -

- -

In this case, user.cgi is the CGI script, the - "/ralph" is information to be passed onto the CGI. If this - configuration was in place, and a request came for - "/cgi-ralph/script/", the code would set PATH_INFO - to "/ralph/script", and SCRIPT_NAME to - "/cgi-". Obviously, the latter is incorrect. In - certain cases, this could even cause the server to crash.

-
top
-
-

The Solution

-

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 - "/script", and SCRIPT_NAME to - "/cgi-ralph". This makes sense and results in no - server behavior problems. It also permits the script to be - guaranteed that - "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO" - will always be an accessible URL that points to the current - script, something which was not necessarily true with previous - versions of httpd.

- -

However, the "/ralph" information from the - Alias 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 workaround.

-
top
-
-

Compatibility with Previous Servers

- - -

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.

- -

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:

- -

- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'}; -

- -

By doing this, a script can work with all servers supporting - the CGI/1.1 specification, including all versions of - Apache HTTP Server.

-
-
-

Available Languages:  en  | - ja  | - ko 

-
- \ No newline at end of file diff --git a/docs/manual/cgi_path.html.ja.euc-jp b/docs/manual/cgi_path.html.ja.euc-jp deleted file mode 100644 index c53ba55524..0000000000 --- a/docs/manual/cgi_path.html.ja.euc-jp +++ /dev/null @@ -1,117 +0,0 @@ - - - -CGI ´Ä¶­¤Ç¤Î PATH_INFO ¤ÎÊѹ¹ - Apache HTTP ¥µ¡¼¥Ð - - - - - -
<-
-
-Apache > HTTP ¥µ¡¼¥Ð > ¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó > ¥Ð¡¼¥¸¥ç¥ó 2.1

CGI ´Ä¶­¤Ç¤Î PATH_INFO ¤ÎÊѹ¹

-
-

Available Languages:  en  | - ja  | - ko 

-
-
This translation may be out of date. Check the - English version for recent changes.
- -

Apache 1.1.1 ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤¿ - CGI ´Ä¶­¤Ç PATH_INFO ¤òºîÀ®¤¹¤ëÊýË¡¤Ïľ´ÑŪ¤Ç¤Ê¤¯¡¢ - ¾ì¹ç¤Ë¤è¤Ã¤Æ¤Ï¥¯¥é¥Ã¥·¥å¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤·¤¿¡£ - Apache 1.2 µÚ¤Ó¤½¤ì°Ê¹ß¤Ë¤ª¤¤¤Æ¡¢¤³¤Îưºî¤¬Êѹ¹¤µ¤ì¤Þ¤·¤¿¡£ - ¤³¤Î¤³¤È¤Ë¤è¤êÆÃÄê¤Î¸Å¤¤ CGI ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤ª¤¤¤Æ¤¤¤¯¤Ä¤« - ¸ß´¹À­¤ÎÌäÂ꤬À¸¤¸¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ç¤â Apache 1.2 ¤Îưºî¤Ï - CGI/1.1 »ÅÍͤȸߴ¹¤¬¤¢¤ê¡¢CGI ¥¹¥¯¥ê¥×¥È¤ÏÍÆ°×¤Ë½¤Àµ¤Ç¤­¤Þ¤¹(°Ê²¼»²¾È)¡£

-
- -
top
-
-

ÌäÂê

- -

Apache 1.1.1 ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Ç¤Ï¡¢URL ¤Ç¤Ï¤Ê¤¯¥Õ¥¡¥¤¥ë̾¤ò»²¾È¤·¤Æ - PATH_INFO ¤È SCRIPT_NAME ´Ä¶­ÊÑ¿ô¤òÀßÄꤷ¤Æ¤¤¤Þ¤·¤¿¡£ - ¿¤¯¤Î¾ì¹ç¤Ï¤³¤ì¤¬Àµ¤·¤¤·ë²Ì¤òÊÖ¤·¤Þ¤¹¤¬¡¢¥Ñ¥¹¾ðÊó¤ò´Þ¤à¤è¤¦¤Ë - filesystem ¥Ñ¥¹¤¬¥ª¡¼¥Ð¡¼¥í¡¼¥É¤µ¤ì¤¿¾ì¹ç¤Ï¡¢ - ¸í¤Ã¤¿·ë²Ì¤òÊÖ¤¹¾ì¹ç¤¬¤¢¤ê¤Þ¤·¤¿¡£ - ¤¿¤È¤¨¤Ð¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤Ë°Ê²¼¤¬¤¢¤ë¾ì¹ç

- -

- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph -

- -

¤³¤Î¾ì¹ç¡¢user.cgi ¤Ï CGI ¥¹¥¯¥ê¥×¥È¤Ç¤¢¤ê¡¢ - "/ralph" ¤Ï¡¢CGI ¤ËÅϤµ¤ì¤ë¾ðÊó¤Ç¤¹¡£¤â¤·¾å¤ÎÀßÄ꤬¤Ê¤µ¤ì¤Æ¤¤¤Æ¡¢ - "/cgi-ralph/script/" ¤Ø¤Î¥ê¥¯¥¨¥¹¥È¤¬Íè¤ì¤Ð¡¢ - PATH_INFO ¤Ë¤Ï "/ralph/script/" ¤¬¡¢ - SCRIPT_NAME ¤Ë¤Ï "/cgi-" ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£ - ÌÀ¤é¤«¤Ë¡¢¸å¼Ô¤Ï´Ö°ã¤Ã¤Æ¤¤¤Þ¤¹¡£ÆÃÄê¤Î¾ì¹ç¤Ë¤Ï¡¢¤³¤ì¤Ë¤è¤ê - ¥µ¡¼¥Ð¤¬¥¯¥é¥Ã¥·¥å¤¹¤ë¤³¤È¤µ¤¨¤¢¤ê¤Þ¤·¤¿¡£

-
top
-
-

²ò·è

-

Apache 1.2 °Ê¹ß¤Ç¤Ï SCRIPT_NAME ¤È PATH_INFO ¤Î·èÄê¤Ë¤Ï URL - ¤òľÀÜ»²¾È¤·¤Æ¡¢URL - ¤Î¤É¤ì¤À¤±¤ÎÉôʬ¤¬¥¯¥é¥¤¥¢¥ó¥È¤¬Êѹ¹²Äǽ¤Ê¤Î¤«¤ò³ÎÄꤵ¤»¤¿¾å¤Ç - PATH_INFO ¤òÀßÄꤹ¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£¾å¤ÎÎã¤Ç¤Ï¡¢PATH_INFO ¤Ë¤Ï - "/script" ¤¬¡¢SCRIPT_NAME ¤Ë¤Ï - "/cgi-ralph" ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£ - ¤³¤ì¤ÏÀµ¤·¤¯¡¢¤µ¤é¤Ë¡¢¥µ¡¼¥Ð¤Îưºî¤ËÌäÂê¤òµ¯¤³¤¹¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¡£¤Þ¤¿¡¢ - "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO" - ¤¬¡¢¾ï¤ËºÇ¿·¤Î¥¹¥¯¥ê¥×¥È¤ò»Ø¤¹¡¢¥¢¥¯¥»¥¹²Äǽ¤Ê URL ¤Ç¤¢¤ë¤³¤È¤ò - Êݾڤ·¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Apache - ¤Ç¤Ïɬ¤º¤·¤â¤½¤¦¤È¤Ï¸Â¤é¤Ê¤«¤Ã¤¿¤³¤È¤Ç¤¹¡£ -

- -

¤·¤«¤· Alias ¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤«¤é¤Î - "/ralph" ¾ðÊó¤Ï¼º¤ï¤ì¤Þ¤¹¡£ - ¤³¤ì¤Ï»Äǰ¤Ç¤¹¤¬¡¢filesystem ¤òÄ̤·¤Æ¤³¤Î¼ïÎà¤Î¾ðÊó¤ò - ÅϤ¹¤Î¤ÏÁ¦¤á¤é¤ì¤¿ÊýË¡¤Ç¤Ï¤Ê¤¯¡¢ - ¤Þ¤¿¤½¤ì¤ò»È¤Ã¤¿¥¹¥¯¥ê¥×¥È¤Ïưºî¤·¤Ê¤¯¤Æ¤âÅöÁ³¤À¤È¹Í¤¨¤Þ¤¹¡£ - ¤¿¤À¤·¡¢Apache 1.2b3 °Ê¹ß¤Ç¤ÏÂåÂØ¼êÃʤòÍѰդ·¤Æ¤¤¤Þ¤¹¡£

-
top
-
-

°ÊÁ°¤Î¥µ¡¼¥Ð¤È¤Î¸ß´¹À­

- - -

°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Apache ¤ä¾¤Î¥µ¡¼¥Ð¸þ¤±¤ËÀ߷פµ¤ì¤¿ - ¥¹¥¯¥ê¥×¥È¤Ë¤Ï¸Å¤¤ PATH_INFO ÊÑ¿ô¤Ë¤è¤êÄ󶡤µ¤ì¤ë¾ðÊó¤¬ - ɬÍפǤ¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ - ¤³¤ÎÌÜŪ¤Î¤¿¤á¤Ë¡¢ - Apache 1.2 (1.2b3 °Ê¹ß) ¤Ç¤ÏÄɲäÎÊÑ¿ô¡¢FILEPATH_INFO - ¤òÀßÄꤷ¤Þ¤¹¡£¤³¤Î´Ä¶­ÊÑ¿ô¤Ë¤Ï¡¢Apache 1.1.1 ¤Ç - PATH_INFO ¤Ç¤¢¤Ã¤¿¤Ç¤¢¤í¤¦Ãͤ¬ÀßÄꤵ¤ì¤Þ¤¹¡£

- -

Apache 1.2 ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÎξÊý¤Çưºî¤µ¤»¤¿¤¤¥¹¥¯¥ê¥×¥È¤Ï¡¢ - FILEPATH_INFO ¤Î¸ºß¤òñ¤ËÄ´¤Ù¤Æ¡¢¤½¤ì¤¬¤¢¤ì¤Ð - »È¤¦¡¢¤È¤¤¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢PATH_INFO - ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢Perl ¤Ç¤Ï¼¡¤Î¤â¤Î¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹

- -

- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'}; -

- -

¤³¤ì¤Ë¤è¤ê¡¢¥¹¥¯¥ê¥×¥È¤Ï¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Apache ¤ò´Þ¤à¡¢ - CGI/1.1 ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¹¤Ù¤Æ¤Î¥µ¡¼¥Ð¤Çưºî¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ -

-
-
-

Available Languages:  en  | - ja  | - ko 

-
- \ No newline at end of file diff --git a/docs/manual/cgi_path.html.ko.euc-kr b/docs/manual/cgi_path.html.ko.euc-kr deleted file mode 100644 index dcd7468471..0000000000 --- a/docs/manual/cgi_path.html.ko.euc-kr +++ /dev/null @@ -1,105 +0,0 @@ - - - -CGI ȯ°æ¿¡¼­ PATH_INFOÀÇ º¯È­ - Apache HTTP Server - - - - - -
<-
-
-Apache > HTTP Server > Documentation > Version 2.1

CGI ȯ°æ¿¡¼­ PATH_INFOÀÇ º¯È­

-
-

°¡´ÉÇÑ ¾ð¾î:  en  | - ja  | - ko 

-
-
ÀÌ ¹®¼­´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù. - ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼­¸¦ Âü°íÇϼ¼¿ä.
- -

¾ÆÆÄÄ¡ 1.1.1°ú ±× ÀÌÀü ¹öÀüÀÇ °æ¿ì CGI ȯ°æ¿¡¼­ - PATH_INFO¸¦ ¸¸µå´Â ¹æ¹ýÀÌ Á÷°üÀûÀÌÁö ¾Ê°í ¾î¶² °æ¿ì ¼­¹ö¸¦ - Á×À̱⵵ Çß´Ù. ¾ÆÆÄÄ¡ 1.2 ÀÌÈÄ ÀÌ ¹æ¹ýÀÌ º¯Çß´Ù. ±âÁ¸ÀÇ - ¾î¶² CGI ÇÁ·Î±×·¥µé°ú ¾à°£ÀÇ È£È¯¹®Á¦°¡ ÀÖÁö¸¸ - ¾ÆÆÄÄ¡ 1.2ÀÇ ÇൿÀº ¾ÆÁ÷µµ CGI/1.1 ±Ô¾àÀ» ¹ù¾î³ªÁö¾ÊÀ¸¸ç, - ½±°Ô CGI ½ºÅ©¸³Æ®¸¦ ¼öÁ¤ÇÒ ¼ö ÀÖ´Ù. (¾Æ·¡ - Âü°í)

-
- -
top
-
-

¹®Á¦Á¡

-

¾ÆÆÄÄ¡ 1.1.1°ú ±× ÀÌÀü ¹öÀüÀº URL ´ë½Å ÆÄÀϸíÀ» - °¡Áö°í PATH_INFO¿Í SCRIPT_NAME ȯ°æº¯¼ö¸¦ ±¸ÇöÇß´Ù. ¸¹Àº - °æ¿ì ¿Ã¹Ù¸¥ °á°ú¸¦ ¾òÁö¸¸, ÆÄÀϽýºÅÛ °æ·Î°¡ path - Á¤º¸¸¦ Æ÷ÇÔÇÑ´Ù¸é À߸øµÈ °á°ú°¡ ³ª¿Ã ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î, - ¼³Á¤ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀÌ ÀÖ´Ù¸é:

- -

- Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph -

- -

ÀÌ °æ¿ì user.cgi´Â CGI ½ºÅ©¸³Æ®À̰í, "/ralph"´Â - CGI¿¡ ³Ñ°ÜÁö´Â Á¤º¸´Ù. ÀÌ °æ¿ì - "/cgi-ralph/script/"·Î ¿äûÀÌ µé¾î¿À¸é PATH´Â - "/ralph/script"°¡ µÇ°í, SCRIPT_NAMEÀº - "/cgi-"°¡ µÈ´Ù. ÈÄÀÚ´Â ºÐ¸íÈ÷ À߸øµÇ¾ú´Ù. - ½ÉÁö¾î ¾î¶² °æ¿ì ¼­¹ö°¡ Áױ⵵ ÇÑ´Ù.

-
top
-
-

ÇØ°áÃ¥

-

¾ÆÆÄÄ¡ 1.2 ÀÌÈÄ¿¡¼­´Â URL¿¡¼­ Ŭ¶óÀÌ¾ðÆ®°¡ Á¶Àý°¡´ÉÇÑ - ºÎºÐÀ» ÆÇ´ÜÇÏ¿© SCRIPT_NAME°ú PATH_INFO¸¦ ¼³Á¤ÇÑ´Ù. À§ÀÇ - ¿¹¿¡¼­ PATH_INFO´Â "/script"°¡ µÇ°í, SCRIPT_NAMEÀº - "/cgi-ralph"°¡ µÈ´Ù. ÀÌ´Â ÇÕ¸®ÀûÀÌ¸ç ¼­¹ö¿¡ - ¹®Á¦¸¦ ÀÏÀ¸Å°Áö ¾Ê´Â´Ù. ¶Ç, ÀÌÀü ¹öÀü°ú ´Þ¸® ½ºÅ©¸³Æ®¿¡¼­ - "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO"°¡ - ÇöÀç ½ºÅ©¸³Æ®¸¦ °¡¸®Å°´Â URLÀÓÀ» º¸ÀåÇÒ ¼ö ÀÖ´Ù.

- -

±×·¯³ª ºÒÇàÈ÷µµ Alias Áö½Ã¾îÀÇ - "/ralph" Á¤º¸´Â »ç¶óÁø´Ù. ±×·¯³ª ¿ì¸®´Â - ÆÄÀϽýºÅÛÀ» »ç¿ëÇÏ¿© ÀÌ·± Á¤º¸¸¦ ³Ñ°ÜÁÖ´Â °ÍÀÌ ¹Ù¶÷Á÷ÇÑ - ¹æ¹ýÀÌ ¾Æ´Ï¸ç, À̸¦ »ç¿ëÇÏ´Â ½ºÅ©¸³Æ®´Â ÀÛµ¿ÇÒ"¸¸ÇÏÁö" - ¾Ê´Ù°í »ý°¢ÇÑ´Ù. ±×·¯³ª ¾ÆÆÄÄ¡ 1.2b3 ÀÌÈÄ¿¡´Â ÀÌ¿¡ ´ëÇÑ - ÇØ°áÃ¥ÀÌ ÀÖ´Ù.

-
top
-
-

ÀÌÀü ¼­¹ö¿Í ȣȯ¼º

- - -

¾ÆÆÄÄ¡ ÀÌÀü ¹öÀüÀ̳ª ´Ù¸¥ ¼­¹ö¿ëÀ¸·Î ¼³°èµÈ ½ºÅ©¸³Æ®´Â - ÀÌÀü PATH_INFO º¯¼ö°¡ Á¦°øÇß´ø Á¤º¸°¡ ÇÊ¿äÇÒ ¼ö ÀÖ´Ù. ±×·¡¼­ - ¾ÆÆÄÄ¡ 1.2 (1.2b3 ÀÌÈÄ)´Â FILEPATH_INFO¶ó´Â º¯¼ö¸¦ ´õ ¼³Á¤ÇÑ´Ù. - ÀÌ È¯°æº¯¼ö´Â ¾ÆÆÄÄ¡ 1.1.1ÀÇ PATH_INFO °ªÀ» °¡Áø´Ù.

- -

½ºÅ©¸³Æ®°¡ ¾ÆÆÄÄ¡ 1.2¿Í ÀÌÀü ¹öÀü ¸ðµÎ¿¡¼­ µ¿ÀÛÇϰÔÇÏ·Á¸é, - ¸ÕÀú FILEPATH_INFO°¡ ÀÖ´ÂÁö °Ë»çÇϰí ÀÖ´Ù¸é ±×°ÍÀ» - »ç¿ëÇÑ´Ù. ¾ø´Ù¸é PATH_INFO¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, - Perl·Î´Â ´ÙÀ½°ú °°´Ù:

- -

- $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'}; -

- -

ÀÌ·¸°Ô ÇÏ¸é ¸ðµç ¾ÆÆÄÄ¡¸¦ Æ÷ÇÔÇÏ¿© CGI/1.1 ±ÔÁ¤À» µû¸£´Â - ¸ðµç ¼­¹ö¿¡¼­ ½ºÅ©¸³Æ®°¡ µ¿ÀÛÇÒ ¼ö ÀÖ´Ù.

-
-
-

°¡´ÉÇÑ ¾ð¾î:  en  | - ja  | - ko 

-
- \ No newline at end of file diff --git a/docs/manual/cgi_path.xml b/docs/manual/cgi_path.xml deleted file mode 100644 index 22b470c91a..0000000000 --- a/docs/manual/cgi_path.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - PATH_INFO Changes in the CGI Environment - - -

As implemented in Apache HTTP Server 1.1.1 and earlier versions, the - method httpd 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 (see - below).

-
- -
The Problem -

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:

- - - Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph - - -

In this case, user.cgi is the CGI script, the - "/ralph" is information to be passed onto the CGI. If this - configuration was in place, and a request came for - "/cgi-ralph/script/", the code would set PATH_INFO - to "/ralph/script", and SCRIPT_NAME to - "/cgi-". Obviously, the latter is incorrect. In - certain cases, this could even cause the server to crash.

-
- -
The Solution -

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 - "/script", and SCRIPT_NAME to - "/cgi-ralph". This makes sense and results in no - server behavior problems. It also permits the script to be - guaranteed that - "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO" - will always be an accessible URL that points to the current - script, something which was not necessarily true with previous - versions of httpd.

- -

However, the "/ralph" information from the - Alias 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 workaround.

-
- -
- Compatibility with Previous Servers - -

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.

- -

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:

- - - $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'}; - - -

By doing this, a script can work with all servers supporting - the CGI/1.1 specification, including all versions of - Apache HTTP Server.

-
-
diff --git a/docs/manual/cgi_path.xml.ja b/docs/manual/cgi_path.xml.ja deleted file mode 100644 index 6829cc568b..0000000000 --- a/docs/manual/cgi_path.xml.ja +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - CGI $B4D6-$G$N(B PATH_INFO $B$NJQ99(B - - -

Apache 1.1.1 $B$*$h$S$=$l0JA0$N%P!<%8%g%s$G4QE*$G$J$/!"(B - $B>l9g$K$h$C$F$O%/%i%C%7%e$9$k$3$H$b$"$j$^$7$?!#(B - Apache 1.2 $B5Z$S$=$l0J9_$K$*$$$F!"$3$NF0:n$,JQ99$5$l$^$7$?!#(B - $B$3$N$3$H$K$h$jFCDj$N8E$$(B CGI $B%"%W%j%1!<%7%g%s$K$*$$$F$$$/$D$+(B - $B8_49@-$NLdBj$,@8$8$k$3$H$,$"$j$^$9$,!"$=$l$G$b(B Apache 1.2 $B$NF0:n$O(B - CGI/1.1 $B;EMM$H8_49$,$"$j!"(BCGI $B%9%/%j%W%H$OMF0W$K=$@5$G$-$^$9(B($B0J2<;2>H(B)$B!#(B

-
- -
$BLdBj(B - -

Apache 1.1.1 $B$*$h$S$=$l0JA0$G$O!"(BURL $B$G$O$J$/%U%!%$%kL>$r;2>H$7$F(B - PATH_INFO $B$H(B SCRIPT_NAME $B4D6-JQ?t$r@_Dj$7$F$$$^$7$?!#(B - $BB?$/$N>l9g$O$3$l$,@5$7$$7k2L$rJV$7$^$9$,!"%Q%9>pJs$r4^$`$h$&$K(B - filesystem $B%Q%9$,%*!<%P!<%m!<%I$5$l$?>l9g$O!"(B - $B8m$C$?7k2L$rJV$9>l9g$,$"$j$^$7$?!#(B - $B$?$H$($P!"@_Dj%U%!%$%k$K0J2<$,$"$k>l9g(B

- - - Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph - - -

$B$3$N>l9g!"(Buser.cgi $B$O(B CGI $B%9%/%j%W%H$G$"$j!"(B - "/ralph" $B$O!"(BCGI $B$KEO$5$l$k>pJs$G$9!#$b$7>e$N@_Dj$,$J$5$l$F$$$F!"(B - "/cgi-ralph/script/" $B$X$N%j%/%(%9%H$,Mh$l$P!"(B - PATH_INFO $B$K$O(B "/ralph/script/" $B$,!"(B - SCRIPT_NAME $B$K$O(B "/cgi-" $B$,@_Dj$5$l$^$9!#(B - $BL@$i$+$K!"8el9g$K$O!"$3$l$K$h$j(B - $B%5!<%P$,%/%i%C%7%e$9$k$3$H$5$($"$j$^$7$?!#(B

-
- -
$B2r7h(B -

Apache 1.2 $B0J9_$G$O(B SCRIPT_NAME $B$H(B PATH_INFO $B$N7hDj$K$O(B URL - $B$rD>@\;2>H$7$F!"(BURL - $B$N$I$l$@$1$NItJ,$,%/%i%$%"%s%H$,JQ992DG=$J$N$+$r3NDj$5$;$?>e$G(B - PATH_INFO $B$r@_Dj$9$k$h$&$K$J$j$^$7$?!#>e$NNc$G$O!"(BPATH_INFO $B$K$O(B - "/script" $B$,!"(BSCRIPT_NAME $B$K$O(B - "/cgi-ralph" $B$,@_Dj$5$l$^$9!#(B - $B$3$l$O@5$7$/!"$5$i$K!"%5!<%P$NF0:n$KLdBj$r5/$3$9$3$H$b$"$j$^$;$s!#$^$?!"(B - "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO" - $B$,!">o$K:G?7$N%9%/%j%W%H$r;X$9!"%"%/%;%92DG=$J(B URL $B$G$"$k$3$H$r(B - $BJ]>Z$7$^$9!#$3$l$O!"0JA0$N%P!<%8%g%s$N(B Apache - $B$G$OI,$:$7$b$=$&$H$O8B$i$J$+$C$?$3$H$G$9!#(B -

- -

$B$7$+$7(B Alias $B%G%#%l%/%F%#%V$+$i$N(B - "/ralph" $B>pJs$O<:$o$l$^$9!#(B - $B$3$l$O;DG0$G$9$,!"(Bfilesystem $B$rDL$7$F$3$NpJs$r(B - $BEO$9$N$OA&$a$i$l$?J}K!$G$O$J$/!"(B - $B$^$?$=$l$r;H$C$?%9%/%j%W%H$OF0:n$7$J$/$F$bEvA3$@$H9M$($^$9!#(B - $B$?$@$7!"(BApache 1.2b3 $B0J9_$G$O(B$BBeBX$B$rMQ0U$7$F$$$^$9!#(B

-
- -
- $B0JA0$N%5!<%P$H$N8_49@-(B - -

$B0JA0$N%P!<%8%g%s$N(B Apache $B$dB>$N%5!<%P8~$1$K@_7W$5$l$?(B - $B%9%/%j%W%H$K$O8E$$(B PATH_INFO $BJQ?t$K$h$jDs6!$5$l$k>pJs$,(B - $BI,MW$G$"$k$+$b$7$l$^$;$s!#(B - $B$3$NL\E*$N$?$a$K!"(B - Apache 1.2 (1.2b3 $B0J9_(B) $B$G$ODI2C$NJQ?t!"(BFILEPATH_INFO - $B$r@_Dj$7$^$9!#$3$N4D6-JQ?t$K$O!"(BApache 1.1.1 $B$G(B - PATH_INFO $B$G$"$C$?$G$"$m$&CM$,@_Dj$5$l$^$9!#(B

- -

Apache 1.2 $B$*$h$S$=$l0JA0$N%P!<%8%g%s$NN>J}$GF0:n$5$;$?$$%9%/%j%W%H$O!"(B - FILEPATH_INFO $B$NB8:_$rC1$KD4$Y$F!"$=$l$,$"$l$P(B - $B;H$&!"$H$$$&$3$H$,$G$-$^$9!#$=$&$G$J$1$l$P!"(BPATH_INFO - $B$r;H$&$3$H$,$G$-$^$9!#$?$H$($P!"(BPerl $B$G$O - - - $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'}; - - -

$B$3$l$K$h$j!"%9%/%j%W%H$O$9$Y$F$N%P!<%8%g%s$N(B Apache $B$r4^$`!"(B - CGI/1.1 $B$r%5%]!<%H$9$k$9$Y$F$N%5!<%P$GF0:n$9$k$3$H$,$G$-$^$9!#(B -

-
-
diff --git a/docs/manual/cgi_path.xml.ko b/docs/manual/cgi_path.xml.ko deleted file mode 100644 index 0550d55dde..0000000000 --- a/docs/manual/cgi_path.xml.ko +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - CGI ȯ°æ¿¡¼­ PATH_INFOÀÇ º¯È­ - - -

¾ÆÆÄÄ¡ 1.1.1°ú ±× ÀÌÀü ¹öÀüÀÇ °æ¿ì CGI ȯ°æ¿¡¼­ - PATH_INFO¸¦ ¸¸µå´Â ¹æ¹ýÀÌ Á÷°üÀûÀÌÁö ¾Ê°í ¾î¶² °æ¿ì ¼­¹ö¸¦ - Á×À̱⵵ Çß´Ù. ¾ÆÆÄÄ¡ 1.2 ÀÌÈÄ ÀÌ ¹æ¹ýÀÌ º¯Çß´Ù. ±âÁ¸ÀÇ - ¾î¶² CGI ÇÁ·Î±×·¥µé°ú ¾à°£ÀÇ È£È¯¹®Á¦°¡ ÀÖÁö¸¸ - ¾ÆÆÄÄ¡ 1.2ÀÇ ÇൿÀº ¾ÆÁ÷µµ CGI/1.1 ±Ô¾àÀ» ¹ù¾î³ªÁö¾ÊÀ¸¸ç, - ½±°Ô CGI ½ºÅ©¸³Æ®¸¦ ¼öÁ¤ÇÒ ¼ö ÀÖ´Ù. (¾Æ·¡ - Âü°í)

-
- -
¹®Á¦Á¡ -

¾ÆÆÄÄ¡ 1.1.1°ú ±× ÀÌÀü ¹öÀüÀº URL ´ë½Å ÆÄÀϸíÀ» - °¡Áö°í PATH_INFO¿Í SCRIPT_NAME ȯ°æº¯¼ö¸¦ ±¸ÇöÇß´Ù. ¸¹Àº - °æ¿ì ¿Ã¹Ù¸¥ °á°ú¸¦ ¾òÁö¸¸, ÆÄÀϽýºÅÛ °æ·Î°¡ path - Á¤º¸¸¦ Æ÷ÇÔÇÑ´Ù¸é À߸øµÈ °á°ú°¡ ³ª¿Ã ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î, - ¼³Á¤ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀÌ ÀÖ´Ù¸é:

- - - Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph - - -

ÀÌ °æ¿ì user.cgi´Â CGI ½ºÅ©¸³Æ®À̰í, "/ralph"´Â - CGI¿¡ ³Ñ°ÜÁö´Â Á¤º¸´Ù. ÀÌ °æ¿ì - "/cgi-ralph/script/"·Î ¿äûÀÌ µé¾î¿À¸é PATH´Â - "/ralph/script"°¡ µÇ°í, SCRIPT_NAMEÀº - "/cgi-"°¡ µÈ´Ù. ÈÄÀÚ´Â ºÐ¸íÈ÷ À߸øµÇ¾ú´Ù. - ½ÉÁö¾î ¾î¶² °æ¿ì ¼­¹ö°¡ Áױ⵵ ÇÑ´Ù.

-
- -
ÇØ°áÃ¥ -

¾ÆÆÄÄ¡ 1.2 ÀÌÈÄ¿¡¼­´Â URL¿¡¼­ Ŭ¶óÀÌ¾ðÆ®°¡ Á¶Àý°¡´ÉÇÑ - ºÎºÐÀ» ÆÇ´ÜÇÏ¿© SCRIPT_NAME°ú PATH_INFO¸¦ ¼³Á¤ÇÑ´Ù. À§ÀÇ - ¿¹¿¡¼­ PATH_INFO´Â "/script"°¡ µÇ°í, SCRIPT_NAMEÀº - "/cgi-ralph"°¡ µÈ´Ù. ÀÌ´Â ÇÕ¸®ÀûÀÌ¸ç ¼­¹ö¿¡ - ¹®Á¦¸¦ ÀÏÀ¸Å°Áö ¾Ê´Â´Ù. ¶Ç, ÀÌÀü ¹öÀü°ú ´Þ¸® ½ºÅ©¸³Æ®¿¡¼­ - "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO"°¡ - ÇöÀç ½ºÅ©¸³Æ®¸¦ °¡¸®Å°´Â URLÀÓÀ» º¸ÀåÇÒ ¼ö ÀÖ´Ù.

- -

±×·¯³ª ºÒÇàÈ÷µµ Alias Áö½Ã¾îÀÇ - "/ralph" Á¤º¸´Â »ç¶óÁø´Ù. ±×·¯³ª ¿ì¸®´Â - ÆÄÀϽýºÅÛÀ» »ç¿ëÇÏ¿© ÀÌ·± Á¤º¸¸¦ ³Ñ°ÜÁÖ´Â °ÍÀÌ ¹Ù¶÷Á÷ÇÑ - ¹æ¹ýÀÌ ¾Æ´Ï¸ç, À̸¦ »ç¿ëÇÏ´Â ½ºÅ©¸³Æ®´Â ÀÛµ¿ÇÒ"¸¸ÇÏÁö" - ¾Ê´Ù°í »ý°¢ÇÑ´Ù. ±×·¯³ª ¾ÆÆÄÄ¡ 1.2b3 ÀÌÈÄ¿¡´Â ÀÌ¿¡ ´ëÇÑ - ÇØ°áÃ¥ÀÌ ÀÖ´Ù.

-
- -
- ÀÌÀü ¼­¹ö¿Í ȣȯ¼º - -

¾ÆÆÄÄ¡ ÀÌÀü ¹öÀüÀ̳ª ´Ù¸¥ ¼­¹ö¿ëÀ¸·Î ¼³°èµÈ ½ºÅ©¸³Æ®´Â - ÀÌÀü PATH_INFO º¯¼ö°¡ Á¦°øÇß´ø Á¤º¸°¡ ÇÊ¿äÇÒ ¼ö ÀÖ´Ù. ±×·¡¼­ - ¾ÆÆÄÄ¡ 1.2 (1.2b3 ÀÌÈÄ)´Â FILEPATH_INFO¶ó´Â º¯¼ö¸¦ ´õ ¼³Á¤ÇÑ´Ù. - ÀÌ È¯°æº¯¼ö´Â ¾ÆÆÄÄ¡ 1.1.1ÀÇ PATH_INFO °ªÀ» °¡Áø´Ù.

- -

½ºÅ©¸³Æ®°¡ ¾ÆÆÄÄ¡ 1.2¿Í ÀÌÀü ¹öÀü ¸ðµÎ¿¡¼­ µ¿ÀÛÇϰÔÇÏ·Á¸é, - ¸ÕÀú FILEPATH_INFO°¡ ÀÖ´ÂÁö °Ë»çÇϰí ÀÖ´Ù¸é ±×°ÍÀ» - »ç¿ëÇÑ´Ù. ¾ø´Ù¸é PATH_INFO¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, - Perl·Î´Â ´ÙÀ½°ú °°´Ù:

- - - $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'}; - - -

ÀÌ·¸°Ô ÇÏ¸é ¸ðµç ¾ÆÆÄÄ¡¸¦ Æ÷ÇÔÇÏ¿© CGI/1.1 ±ÔÁ¤À» µû¸£´Â - ¸ðµç ¼­¹ö¿¡¼­ ½ºÅ©¸³Æ®°¡ µ¿ÀÛÇÒ ¼ö ÀÖ´Ù.

-
- diff --git a/docs/manual/cgi_path.xml.meta b/docs/manual/cgi_path.xml.meta deleted file mode 100644 index ae8359a6ce..0000000000 --- a/docs/manual/cgi_path.xml.meta +++ /dev/null @@ -1,13 +0,0 @@ - - - - cgi_path - / - . - - - en - ja - ko - - diff --git a/docs/manual/sitemap.html.de b/docs/manual/sitemap.html.de index 812d800ccc..ef9a1edfab 100644 --- a/docs/manual/sitemap.html.de +++ b/docs/manual/sitemap.html.de @@ -141,7 +141,6 @@ HPUX betreiben
top

Weitere Apache-Dokumentationen

top
diff --git a/docs/manual/sitemap.html.en b/docs/manual/sitemap.html.en index 4007cee46d..83d0e29620 100644 --- a/docs/manual/sitemap.html.en +++ b/docs/manual/sitemap.html.en @@ -139,7 +139,6 @@ Server on HPUX
top

Apache Miscellaneous Documentation

top
diff --git a/docs/manual/sitemap.html.es b/docs/manual/sitemap.html.es index 2a84a3f0be..e5e96795fb 100644 --- a/docs/manual/sitemap.html.es +++ b/docs/manual/sitemap.html.es @@ -141,7 +141,6 @@ Apache
top

Documentación adicional sobre Apache

top
diff --git a/docs/manual/sitemap.html.ja.euc-jp b/docs/manual/sitemap.html.ja.euc-jp index 0bb7da7d22..26e3a1880e 100644 --- a/docs/manual/sitemap.html.ja.euc-jp +++ b/docs/manual/sitemap.html.ja.euc-jp @@ -138,7 +138,6 @@
top

Apache ¤½¤Î¾

top
diff --git a/docs/manual/sitemap.html.ko.euc-kr b/docs/manual/sitemap.html.ko.euc-kr index f625e576bd..51904ed477 100644 --- a/docs/manual/sitemap.html.ko.euc-kr +++ b/docs/manual/sitemap.html.ko.euc-kr @@ -142,7 +142,6 @@
top

±âŸ ¾ÆÆÄÄ¡ ¹®¼­

top
diff --git a/docs/manual/sitemap.xml b/docs/manual/sitemap.xml index 2f304f39a7..1c34268d94 100644 --- a/docs/manual/sitemap.xml +++ b/docs/manual/sitemap.xml @@ -1,7 +1,7 @@ - + + + + +