Re: RewriteCond and SSL environment variables

2004-03-03 Thread Joe Orton
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

Re: RewriteCond and SSL environment variables

2004-03-03 Thread Andr Malo
* Joe Orton [EMAIL PROTECTED] wrote: 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

Re: RewriteCond and SSL environment variables

2004-03-03 Thread Joe Orton
On Wed, Mar 03, 2004 at 07:47:21PM +0100, André Malo wrote: * Joe Orton [EMAIL PROTECTED] wrote: 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

Re: RewriteCond and SSL environment variables

2004-03-03 Thread Andr Malo
* Joe Orton [EMAIL PROTECTED] wrote: I think you've got it backwards: ssl_var_lookup always generates the SSL variables on the fly; it is used by the fixup handler to populate r-subprocess_env if +StdEnvVars, but works exactly the same regardless of that config option. I must have been blind

RE: RewriteCond and SSL environment variables

2004-03-03 Thread Mathihalli, Madhusudan
-Original Message- From: Joe Orton [mailto:[EMAIL PROTECTED] [SNIP] What I'm proposing is something as simple as below, which lets you do RewriteCond %{SSL:HTTPS} =on without needing +StdEnvVars... are we on the same page? I'd suggest having %{ENV:HTTPS}, %{ENV:SSL_CIPHER_...} - to

Re: RewriteCond and SSL environment variables

2004-03-02 Thread Joe Orton
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

Re: RewriteCond and SSL environment variables

2004-03-02 Thread Andr Malo
* 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

RE: RewriteCond and SSL environment variables

2004-03-02 Thread Mathihalli, Madhusudan
-Original Message- From: André Malo [mailto:[EMAIL PROTECTED] [SNIP] * 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

RE: RewriteCond and SSL environment variables

2004-03-01 Thread Mathihalli, Madhusudan
BTW, I forgot to mention that RewriteCond with SSL variables work if (1) ssl_hook_Translate is APR_HOOK_FIRST and (2) ssl_hook_Fixup logic is transferred to ssl_hook_Translate. I know it's a hack - do you think my config is not setup correctly or is the logic wrong ? -Madhu -Original