.<div><br></div><div>location /secure/ {</div><div><div>        if ($scheme = "http") {</div><div>            return 301 https://$host$request_uri?;</div><div>        }</div>
</div><div>}</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">11  2012., 23:30  Antwerpen <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> ,<br>
<br>
 nginx.conf:<br>
-------------------------------------------------------------------<br>
...<br>
ssl_certificate       /etc/ssl/site.crt;<br>
ssl_certificate_key   /etc/ssl/site.key;<br>
<br>
  server {<br>
<br>
    listen     80 default_server;<br>
    listen     443 ssl;<br>
<br>
...<br>
<br>
    location ~ \.php$ {<br>
      try_files  $uri = 404;<br>
      include   fastcgi_params;<br>
      fastcgi_pass    localhost:9000;<br>
      fastcgi_param    HTTPS on;<br>
      fastcgi_param    SCRIPT_FILENAME<br>
$document_root$fastcgi_script_name;<br>
      fastcgi_index    index.php;<br>
    }<br>
<br>
  }<br>
...<br>
-------------------------------------------------------------------<br>
<br>
     HTTPS  HTTP  , <br>
    location, :<br>
<a href="http://localhost/sign" target="_blank">http://localhost/sign</a> -> <a href="https://localhost/sign/" target="_blank">https://localhost/sign/</a><br>
<br>
     nginx     ?<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,233892,233892#msg-233892" target="_blank">http://forum.nginx.org/read.php?21,233892,233892#msg-233892</a><br>
<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></blockquote></div><br></div>