On Tue, Mar 02, 2004 at 08:42:36PM +0100, Andr� Malo wrote:
> * Joe Orton <[EMAIL PROTECTED]> wrote:
>
> > On Mon, Mar 01, 2004 at 10:37:46AM -0800, Mathihalli, Madhusudan wrote:
> > > Hi,
> > > Question: Can we use the environment variables setup by mod_ssl
> > > in the RewriteCond directive ?
> >
> > Not like in 1.3; in 2.0 you can use %{LA-U:ENV:...} to fetch the SSL
> > variables via a subrequest; a better solution is to extend mod_rewrite
> > to allow %{SSL:...} or something to use ssl_var_lookup() when available,
> > to fetch variables directly from mod_ssl.
>
> Sounds good. But we'd need to hook the variable creation earlier anyway, since
> ssl_var_lookup finally just uses r->subprocess_env.
I don't see how that follows; if you're just trying to retrieve a
non-SSL subprocess_env var via ssl_var_lookup(), why would registering
the SSL variables earlier make a difference?
> And then -- we could just use %{ENV:...} :-)
That still requires SSLOptions +StdEnvVars which is nice to avoid if
possible, especially if all you want to fetch is something like
"%HTTPS"!
Regards,
joe