passing header information on to backend Apache/PHP
peter.langhans at incipience.co.uk
Sun Apr 5 17:02:34 MSD 2009
I'm using nginx 0.6.35, apache 2.0.63 and php 5.2.9.
My problem is, that I need my php scripts to know in some way or another
When using nginx as webfrontend proxy, it accepts all the ssl connections
and it's working fine, but when I proxy through to apache, the knowledge
about SSL is 'lost'. If possible, I don't want to be using different ports
for proxying through to apache.
I thought it'd be enough to set headers like:
proxy_set_header X-Secure of;
proxy_set_header X-Secure on;
put I have not found a way how I could retrieve those values from within the
php script. They seem to be filtered out by Apache.
Does anyone have an idea how I can get any custom set header, set in the
nginx.conf through to the php scripts?
Thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx