httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Browder <tom.brow...@gmail.com>
Subject Re: [users@httpd] Re: CGI environment variables different between 2.2 and 2.4?
Date Sat, 22 Aug 2015 20:15:24 GMT
On Sat, Aug 22, 2015 at 2:12 PM, Kurtis Rader <krader@skepticism.us> wrote:
...
> I was confused as well since your original message made it sound like you
> saw DOCUMENT_ROOT in the 2.2 CGI environment and  not in the 2.4 CGI
> environment. Which I simply assumed meant someone had updated the code to
> more strictly conform to the CGI specification. Having just looked at the
> code I see that mod_cgi simply passes the subprocess environment (obtained
> by calling ap_create_environment()) in its entirety to the CGI program.
> There is no code in mod_cgi to filter the environment. Whether that's a bug
> or  a feature is debatable.
>
> This page comes closest to documenting what is passed:
> http://httpd.apache.org/docs/2.4/env.html. I haven't been able to find an
> Apache HTTPD page that documents the special environment vars that are
> synthesized from, or mirror, values set by directives such as DocumentRoot.
> In fact, the documentation for DocumentRoot
> (http://httpd.apache.org/docs/2.4/mod/core.html#documentroot ) doesn't even
> mention the corresponding env var. I think that's a documentation bug.

Sorry for the confusion, Kurt, but I appreciate your look and
analysis.  Shall I file the bug, or would it be better coming from
you.

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message