44 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
55 This file is generated from xml source: DO NOT EDIT
66 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7- --><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>
7+ -->
8+ <title >PATH_INFO Changes in the CGI Environment - Apache HTTP Server</title >
9+ <link href =" ./style/css/manual.css" rel =" stylesheet" media =" all" type =" text/css" title =" Main stylesheet" />
10+ <link href =" ./style/css/manual-loose-100pc.css" rel =" alternate stylesheet" media =" all" type =" text/css" title =" No Sidebar - Default font size" />
11+ <link href =" ./style/css/manual-print.css" rel =" stylesheet" media =" print" type =" text/css" />
12+ <link href =" ./images/favicon.ico" rel =" shortcut icon" /></head >
13+ <body id =" manual-page" ><div id =" page-header" >
14+ <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 >
15+ <p class =" apache" >Apache HTTP Server Version 2.1</p >
16+ <img alt =" " src =" ./images/feather.gif" /></div >
17+ <div class =" up" ><a href =" ./" ><img title =" < -" alt =" < -" src =" ./images/left.gif" /></a ></div >
18+ <div id =" path" >
19+ <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 >
820 <p >As implemented in Apache 1.1.1 and earlier versions, the
921 method Apache used to create PATH_INFO in the CGI environment
1022 was counterintuitive, and could result in crashes in certain
1426 still compatible with the CGI/1.1 specification, and CGI
1527 scripts can be easily modified (<a href =" #compat" >see
1628 below</a >).</p >
17- </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>
29+ </div >
30+ <div id =" quickview" ><ul id =" toc" ><li ><img alt =" " src =" ./images/down.gif" /> <a href =" #prob" >The Problem</a ></li >
31+ <li ><img alt =" " src =" ./images/down.gif" /> <a href =" #solution" >The Solution</a ></li >
32+ <li ><img alt =" " src =" ./images/down.gif" /> <a href =" #compat" >Compatibility with Previous Servers</a ></li >
33+ </ul ></div >
34+ <div class =" top" ><a href =" #page-header" ><img alt =" top" src =" ./images/up.gif" /></a ></div >
35+ <div class =" section" >
36+ <h2 ><a name =" prob" id =" prob" >The Problem</a ></h2 >
1837 <p >Apache 1.1.1 and earlier implemented the PATH_INFO and
1938 SCRIPT_NAME environment variables by looking at the filename,
2039 not the URL. While this resulted in the correct values in many
3352 to "<code >/ralph/script</code >", and SCRIPT_NAME to
3453 "<code >/cgi-</code >". Obviously, the latter is incorrect. In
3554 certain cases, this could even cause the server to crash.</p >
36- </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>
55+ </div ><div class =" top" ><a href =" #page-header" ><img alt =" top" src =" ./images/up.gif" /></a ></div >
56+ <div class =" section" >
57+ <h2 ><a name =" solution" id =" solution" >The Solution</a ></h2 >
3758 <p >Apache 1.2 and later now determine SCRIPT_NAME and PATH_INFO
3859 by looking directly at the URL, and determining how much of the
3960 URL is client-modifiable, and setting PATH_INFO to it. To use
5374 information is not a recommended method, and a script making
5475 use of it "deserves" not to work. Apache 1.2b3 and later,
5576 however, do provide <a href =" #compat" >a workaround.</a ></p >
56- </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>
77+ </div ><div class =" top" ><a href =" #page-header" ><img alt =" top" src =" ./images/up.gif" /></a ></div >
78+ <div class =" section" >
79+ <h2 ><a name =" compat" id =" compat" >Compatibility with Previous Servers</a ></h2 >
5780
5881
5982 <p >It may be necessary for a script that was designed for
7598 <p >By doing this, a script can work with all servers supporting
7699 the CGI/1.1 specification, including all versions of
77100 Apache.</p >
78- </div></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/">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>
101+ </div ></div >
102+ <div id =" footer" >
103+ <p class =" apache" >Maintained by the <a href =" http://httpd.apache.org/docs-project/" >Apache HTTP Server Documentation Project</a ></p >
104+ <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 >
105+ </body ></html >
0 commit comments