Hi,<br><br>I&#39;m using nginx 0.6.35, apache 2.0.63 and php 5.2.9.<br><br>My problem is, that I need my php scripts to know in some way or another whether SSL is used or not (to include either https or http javascript files e.g.).<br>
<br>When using nginx as webfrontend proxy, it accepts all the ssl connections and it&#39;s working fine, but when I proxy through to apache, the knowledge about SSL is &#39;lost&#39;. If possible, I don&#39;t want to be using different ports for proxying through to apache.<br>
<br>I thought it&#39;d be enough to set headers like:<br><br>for 80:<br>proxy_set_header           X-Secure     of;<br><br>for 443:<br>
proxy_set_header           X-Secure     on;<br><br>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.<br><br>Does anyone have an idea how I can get any custom set header, set in the nginx.conf through to the php scripts?<br>
<br>Thanks a lot,<br>Peter<br>