httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Browder <>
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 <> 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:
> 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
> ( ) 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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message