httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Zettergren <bjorn.zetterg...@basefarm.se>
Subject Re: [users@httpd] SetEnv HTTPS on... not working. (UNCLASSIFIED)
Date Fri, 17 Dec 2010 20:39:43 GMT
>> -----Original Message-----
>> From: Mxrgus Pxrt [mailto:margus@tione.eu]
>> Sent: Sunday, December 12, 2010 4:28 PM
[...]
>> Components:
>> - client
>> - SSL offloader (Apache)
>> - Backend server (Apache)
>>
>> RewriteCond %{HTTP:HTTPS} !=on
>> RewriteRule (.*) https://example.com/$1 [L,R=301]

I'm not sure if you've recieved an answer for this, but you could set a 
new header in the SSL-Offloader if the incomming request is indeed 
https, for example "RequestHeader set X-Forwarded-SSL %{HTTPS}e env=HTTPS".

Then in your backend application server you can check 
%{HTTP:X-Forwarded-SSL} in your RewriteCond.

/Björn

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message