On Sat, Aug 22, 2015 at 9:11 AM, Tom Browder <tom.brow...@gmail.com> wrote:

> On Sat, Aug 22, 2015 at 11:03 AM, Eric Covener <cove...@gmail.com> wrote:
> > On Sat, Aug 22, 2015 at 12:01 PM, Tom Browder <tom.brow...@gmail.com>
> wrote:
> >> Mine, too.
> >
> > I'm confused, is this where the thread started or did you have to
> > change something in your scripts for 2.4?
>
> The thread began with my query about whether anything changed CGI
> vars-wise between 2.2 and 2.4.  Then I reported that DOCUMENT_ROOT was
> still there, but it's not documented.  Etc.  I have not changed
> anything in my scripts.
>

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.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

Reply via email to