httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo>
Subject Re: Mod-rewrite / mod-env weirdness
Date Fri, 01 Aug 2003 11:35:16 GMT
* Alan Skea wrote:

> However ... now I'm using the HTTPS variable and getting exactly the same
> behaviour. The problem is only in the top-level request - in
> subrequests, as you say, the variables have been initialised.Also
> it's only the first time that the virtual server is used in a given httpd
> process. Subsequent requests to the same URL in the same httpd
> process are OK and the top-level request has the variable set. It
> looks to me like there is some curiosity in the way that a virtual server
> gets initialised.

Uuh, I have taken a look into mod_ssl now. HTTPS will be set very late as well
:-(. I'm not a mod_ssl guru, so I don't know whether it could be set

Fortunately you can use the mod_rewrite lookahead feature in order to solve
this. The following should work reliably:

RewriteCond %{LA-U:ENV:HTTPS} !=on


P.S.: please avoid HTML(-only) postings.

View raw message