httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Accessing environment variables set by other modules
Date Mon, 01 Oct 2012 12:16:36 GMT
On Mon, Oct 1, 2012 at 7:34 AM, Christoph Gröver <grover@sitepark.com> wrote:
>
> Hello Daniel,
>
>> Just a quick suggestion; Have you tried r->user ?
>
> Tak! Really a good suggestion. r->user is set if it's run
> in the fixup hook.
>
> I still would like to know if it's possible to access variables set by
> other modules, but for the current development it'll be sufficient.

Sometimes envvars are set directly into subprocess_env (e.g., handling
of SetEnv/SetEnvIf).  IOW, subprocess_env is the primary
representation.

But the REMOTE_USER and HTTP request header variables are a
representation of information stored elsewhere (r->user,
r->headers_in), and that envvar representation is created just before
running an external process.

A module should always look at the primary representation, in this case r->user.

>
> With kind regards.
>
> Christoph Grøver
>
> --



-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Mime
View raw message