Thanks, I am currently using a shared block for both.<br><br>What would be the exact syntax?  I tried different variations with no success :-(.<br><br>something like:<br><br>if ($server_port = 443)<br>{<br>fastcgi_param HTTPS on;<br>
}<br><br>looking for confirmation that the above is correct nginx syntax...<br><br>Thanks<br><br><div class="gmail_quote">On Sat, Aug 15, 2009 at 1:30 PM, Michael Shadle <span dir="ltr">&lt;<a href="mailto:mike503@gmail.com">mike503@gmail.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;">You only set it in your server block that is for SSL.<br>
<br>
If you use a shared block for both, I&#39;m not sure; perhaps there could<br>
be if ($request_port = 80) { } type deal put in?<br>
<div><div></div><div class="h5"><br>
On Fri, Aug 14, 2009 at 11:36 PM, Ilan Berkner&lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>&gt; wrote:<br>
&gt; Some of our software relies on the $_SERVER[&#39;HTTPS&#39;] PHP variable to be set<br>
&gt; to &quot;on&quot; when accessing pages via https://.  So far  I&#39;ve found:<br>
&gt;<br>
&gt; fastcgi_params HTTPS on;<br>
&gt;<br>
&gt; but this turns it on for all pages, regardless of HTTP or HTTPS request<br>
&gt; setting.<br>
&gt;<br>
&gt; What am I missing?<br>
&gt;<br>
&gt; When I add the HTTPS on parameter, our code works (i.e. detects HTTPS in<br>
&gt; $_SERVER) but for every page, HTTP or HTTPs<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>