Re: SetEnv HTTPS on... not working. (UNCLASSIFIED)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Mxrgus Pxrt [mailto:margus@xxxxxxxx]
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux