<div>
                    Hi everybody,</div><div><br></div><div>I'm using an internal proxy for one of my websites (just a PHP script which does a curl request for a given script).</div><div><br></div><div>I've forced every non-ssl location to ssl with this:</div><div><blockquote type="cite">rewrite ^/(.*) https://$host/$1 permanent;</blockquote></div>
                <div><div><br></div><div>The thing is that my scripts doesn't need SSL as it's internal, so I want to force SSL except for a given location:</div><blockquote type="cite">location = /includes/api.php {<br><div>} </div><div>rewrite ^/(.*) https://$host/$1 permanent;</div></blockquote><div></div><div><br></div><div>Unfortunately, this isn't enough and queries to /includes/api.php?foo=bar still sends me a 301 redirect.</div><div>Am I missing something ?</div><div>Thanks for your help.</div><div>---<br>Cordialement, Adnan RIHAN.<br>
<u>Président</u>-<u>Fondateur</u> de l'association (de loi 1901) <a href="http://www.virtual-info.info/" target="_blank"><b>Virtual-Info</b></a>, <i>hébergeur Web et Serveurs de Jeux</i>.<br>
<a href="http://rihan.fr/" target="_blank"><u>Consultant</u></a>-<u>Technicien Supérieur</u> en <i>Informatique de Gestion</i>.<br><u>Ambassadeur</u> <a href="http://lyt.me/7E" target="_blank"><b>Qt</b></a> (Projet <a href="http://rihan.fr/fr/projets/tagpg" target="_blank"><b>Tag-PG</b></a>).<u><br></u></div><div><br></div></div>