Hey!

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:

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


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

RewriteCond %{HTTPS} !=on
RewriteRule (.*)      https://example.com/$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 (.*)      https://example.com/$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 ...).


Br,
Margus




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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to