From: Astrid Malo Date: Sat, 14 Aug 2004 16:16:23 +0000 (+0000) Subject: - name Apache with its full name X-Git-Tag: STRIKER_2_1_0_RC1~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa75a62cecaa2507f08e205b726457e1ea7fb847;p=apache - name Apache with its full name - markup improvement git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104655 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/cgi_path.html.en b/docs/manual/cgi_path.html.en index 7a09e3d68a..55467a4d66 100644 --- a/docs/manual/cgi_path.html.en +++ b/docs/manual/cgi_path.html.en @@ -18,15 +18,16 @@
Apache > HTTP Server > Documentation > Version 2.1

PATH_INFO Changes in the CGI Environment

-

Available Languages:  en  | +

Available Languages:  de  | + en  |  ja  |  ko 

-

As implemented in Apache 1.1.1 and earlier versions, the - method Apache used to create PATH_INFO in the CGI environment - was counterintuitive, and could result in crashes in certain - cases. In Apache 1.2 and beyond, this behavior has changed. +

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 @@ -40,7 +41,7 @@

top

The Problem

-

Apache 1.1.1 and earlier implemented the PATH_INFO and +

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 @@ -52,7 +53,7 @@

In this case, user.cgi is the CGI script, the - "/ralph" is information to be passed onto the CGI. If this + "/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 @@ -61,9 +62,9 @@

top

The Solution

-

Apache 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 +

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 @@ -72,7 +73,7 @@ "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 Apache.

+ versions of httpd.

However, the "/ralph" information from the Alias directive is lost. This is unfortunate, but @@ -86,7 +87,7 @@

It may be necessary for a script that was designed for - earlier versions of Apache or other servers to need the + 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 @@ -103,10 +104,11 @@

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

+ Apache HTTP Server.

-

Available Languages:  en  | +

Available Languages:  de  | + en  |  ja  |  ko