You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tomer Okavi <to...@gmail.com> on 2010/05/23 14:37:25 UTC
[users@httpd] Reverse Proxy and header manipulation
Hi
I'm using apache as front end for iis servers.
I'm using mod_proxy and mod_proxy_balancer for the reverse proxy stuff and
for load balancing requests beetween backend (IIS) servers.
the front end apache is also doing ssl, backend communication is http
(browser ----> https apache ------> http backend iis)
i'm trying to pass some env variables like SSL_SESSION_ID to the backend
servers via HTTP Headers.
i tried RequestHeader append SSL_SESSION_ID %{SSL_SESSION_ID}e with no
luck.
headers are set but with null values at the backend.
any help or pointers will be appreciated.
Thanks
Tomer.
RE: [users@httpd] Reverse Proxy and header manipulation
Posted by Emmanuel Bailleul <Em...@telindus.fr>.
> -----Message d'origine-----
> De : Octavian Rasnita [mailto:orasnita@gmail.com]
> Envoyé : dimanche 23 mai 2010 18:05
> À : users@httpd.apache.org
> Objet : Re: [users@httpd] Reverse Proxy and header manipulation
>
> From: "Tomer Okavi" <to...@gmail.com>
> > Hi
> > I'm using apache as front end for iis servers.
> > I'm using mod_proxy and mod_proxy_balancer for the reverse proxy stuff
> and
> > for load balancing requests beetween backend (IIS) servers.
> > the front end apache is also doing ssl, backend communication is http
> > (browser ----> https apache ------> http backend iis)
> > i'm trying to pass some env variables like SSL_SESSION_ID to the backend
> > servers via HTTP Headers.
> > i tried RequestHeader append SSL_SESSION_ID %{SSL_SESSION_ID}e with no
> > luck.
> > headers are set but with null values at the backend.
> >
> > any help or pointers will be appreciated.
> >
> > Thanks
> >
> > Tomer.
>
> Hi,
>
> If you have %{SSL_SESSION_ID}e in that line, it means that you should
> already have defined the environment variable SSL_SESSION_ID. Have you
> defined it?
>
> If you didn't, you could use just:
>
> RequestHeader append SSL_SESSION_ID 1
>
> You could create 2 virtual hosts, one that uses SSL and one that doesn't,
> and send this HTTP header only in the virtualhost that uses SSL.
>
> Octavian
>
>
Hi,
Just some ideas :
- do you have 'SSLOptions +StdEnvVars' in your config ?
- did you try with 'RequestHeader set ...' ?
Regards
Emmanuel
Re: [users@httpd] Reverse Proxy and header manipulation
Posted by Octavian Rasnita <or...@gmail.com>.
From: "Tomer Okavi" <to...@gmail.com>
> Hi
> I'm using apache as front end for iis servers.
> I'm using mod_proxy and mod_proxy_balancer for the reverse proxy stuff and
> for load balancing requests beetween backend (IIS) servers.
> the front end apache is also doing ssl, backend communication is http
> (browser ----> https apache ------> http backend iis)
> i'm trying to pass some env variables like SSL_SESSION_ID to the backend
> servers via HTTP Headers.
> i tried RequestHeader append SSL_SESSION_ID %{SSL_SESSION_ID}e with no
> luck.
> headers are set but with null values at the backend.
>
> any help or pointers will be appreciated.
>
> Thanks
>
> Tomer.
Hi,
If you have %{SSL_SESSION_ID}e in that line, it means that you should already have defined the environment variable SSL_SESSION_ID. Have you defined it?
If you didn't, you could use just:
RequestHeader append SSL_SESSION_ID 1
You could create 2 virtual hosts, one that uses SSL and one that doesn't, and send this HTTP header only in the virtualhost that uses SSL.
Octavian
---------------------------------------------------------------------
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