httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mxrgus Pxrt <>
Subject Re: [users@httpd] SetEnv HTTPS on... not working.
Date Mon, 13 Dec 2010 02:27:48 GMT

I did not mean that I want HTTP to HTTPS transparency (although, I can't 
see how do they differ to end application - communication from client to 
server is over SSL with HTTPS + few additional environmental values - 
should not affect end app).

I'll try to explain, what I ment with an example:

- client
- SSL offloader (Apache)
- Backend server (Apache)

Now client makes query to Backend server requeries 
that HTTPS on or redirect to there is done. Code example below:

RewriteCond %{HTTPS} !=on
RewriteRule (.*)$1 [L,R=301]

(But this does not work, as query comes to port 80 over HTTP from SSL 
offloader and infinite loop is created.)

I know, I could write headers from SSL offloader and check in backend 
server (or even do this in SSL offloader):

RewriteCond %{HTTP:HTTPS} !=on
RewriteRule (.*)$1 [L,R=301]

But I am stubborn and want to know, how to overwrite this value (or 
answer, that it's not possible because of ...).


On 12/11/2010 04:46 PM, Jeroen Geilman wrote:
> On 12/10/10 12:55 PM, Mxrgus Pxrt wrote:
>> I have SSL offloader, what checks wheather user came using HTTP or 
>> HTTPS (sends accordingly header.)
>> As I want it to be transparent to application and available to 
>> .htaccess, I use apaches values. I want to overwrite them.
> Switching from HTTP to HTTPS cannot be transparent. ever.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message