<br><br><div class="gmail_quote">2010/3/25 Octavian Rasnita <span dir="ltr">&lt;<a href="mailto:orasnita@gmail.com">orasnita@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
The back end servers don&#39;t know if the current request is an http or an https one and on each redirect, they do the redirection using the http scheme.<br>
(I have also set the configuration option using_frontend_proxy to true.)<br>
<br>
<br>
Also, because the back end servers receive only http requests, $c-&gt;req-&gt;secure is always equal to 0.<br>
I have read that I can set the HTTPS environment variable to &quot;On&quot; and I put the following line in the configuration file of the load balancer Apache server in the virtualhost that handles SSL requests:<br>
<br>
SetEnv HTTPS On<br></blockquote><div><br></div><div>Does that header get to Catalyst?  Obviously, check that first.</div><div><br></div><div>I have this in  a &quot;after &#39;prepare_headers&#39;&quot;:</div><div><br></div>

<div><div>   $res-&gt;secure( 1 ) if lc( $req-&gt;header( &#39;Https&#39; ) || &#39;&#39; ) eq &#39;on&#39;;</div><div> </div></div><div>The load balancer sends all traffic to the same port.  The load balancer sets that header for SSL traffic.</div>

<div><br></div><div>I used to send to two different ports and then detect SSL based on the port number.  Same result either way.</div><div><br></div><div><br></div><div> </div></div><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org">moseley@hank.org</a><br>