Igor,<br><br>Thank you for the fast response, I&#39;m not exactly clear regarding your question.  Currently we&#39;re passing all of our requests to PHP via fastcgi.<br><br><div class="gmail_quote">2009/8/21 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, Aug 21, 2009 at 09:08:42AM -0400, Ilan Berkner wrote:<br>
<br>
&gt; I&#39;ve come across this setting for nginx, but am not sure if this will solve<br>
&gt; it?<br>
&gt;<br>
&gt;   proxy_set_header X_FORWARDED_PROTO https;<br>
<br>
</div>This depends on proxied server.<br>
<div><div></div><div class="h5"><br>
&gt; 2009/8/21 Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;<br>
&gt;<br>
&gt; &gt; On Thu, Aug 20, 2009 at 09:05:18PM -0400, Ilan Berkner wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; So we&#39;re doing a credit card transaction and it comes back from paypal on<br>
&gt; &gt; &gt; the return trip with that error (on our end).  The reason is that the<br>
&gt; &gt; return<br>
&gt; &gt; &gt; URL is:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; <a href="http://www.domain.com:443/.." target="_blank">http://www.domain.com:443/..</a>..<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; so its trying to access port 443 via http.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I won&#39;t know till tomorrow, but I hope that we can adjust the return URL<br>
&gt; &gt; to<br>
&gt; &gt; &gt; correctly be &quot;<a href="https://www.domain.com." target="_blank">https://www.domain.com.</a>.. than it works as it should.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; My question is, should I put something in the Nginx configuration file<br>
&gt; &gt; that<br>
&gt; &gt; &gt; if someone tries to access &quot;http&quot; using port 443, redirect them to https?<br>
&gt; &gt; &gt; If so, how?  Is that the correct way of going about it outside of<br>
&gt; &gt; correcting<br>
&gt; &gt; &gt; the return URL (which of course would be the ideal way), but in general,<br>
&gt; &gt; &gt; should requests coming to <a href="http://www.domain.com:443" target="_blank">http://www.domain.com:443</a> be forced to HTTPS?<br>
&gt; &gt;<br>
&gt; &gt; nginx supports some internal error codes to handle error_page redirection:<br>
&gt; &gt;<br>
&gt; &gt;     error_page  497  https://$host$request_uri;<br>
&gt; &gt;<br>
&gt; &gt; 497 means that plain HTTP request was sent to HTTPS port.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Igor Sysoev<br>
&gt; &gt; <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>