Hi Larry,<br><br>thx for that. I considered that as well, but I find the solution somewhat &quot;unelegant&quot;. It should either be identified by the port (which is hard due to architecture setup in my case) or a header (which I would prefer).<br>
<br>Thx for hinting this solution out again. Maybe I really should consider it and put my desire for &#39;compliable&#39;/&#39;elegant&#39; solutions into the bin... :( (which would hurt my heart).<br><br>Bests,<br>Pete<br>
<br><div class="gmail_quote">On Sun, Apr 5, 2009 at 2:37 PM, Larry Bates <span dir="ltr">&lt;<a href="mailto:larry.bates@vitalesafe.com">larry.bates@vitalesafe.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">How about a rewrite rule that passes a parameter to your 
PHP script:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span></span> </div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:owner-nginx@sysoev.ru" target="_blank">owner-nginx@sysoev.ru</a> 
[mailto:<a href="mailto:owner-nginx@sysoev.ru" target="_blank">owner-nginx@sysoev.ru</a>] <b>On Behalf Of </b>Peter 
Langhans<br><b>Sent:</b> Sunday, April 05, 2009 8:03 AM<br><b>To:</b> 
<a href="mailto:nginx@sysoev.ru" target="_blank">nginx@sysoev.ru</a><br><b>Subject:</b> passing header information on to backend 
Apache/PHP<br></font><br></div><div><div></div><div class="h5">
<div></div>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></div></div></div>
</blockquote></div><br>