You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by André Malo <nd...@perlig.de> on 2003/08/01 13:35:16 UTC
Re: Mod-rewrite / mod-env weirdness
* 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
earlier...
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
...
nd
P.S.: please avoid HTML(-only) postings.