On Mar 12, 2013, at 10:07 , Modigar wrote:

>    server {
>        listen          443 ssl;       # порт https
>        server_name     localhost; # ваш сайт
> 
>        ssl_certificate                /usr/local/nginx/sert/cert.pem;
>       ssl_certificate_key     /usr/local/nginx/sert/cert.key; 

Вот это:

>        if ( $scheme = "http" ) {
>             rewrite ^/(.*)$   https://$host/$1 permanent;
>        }

бессмыслица. Нужно так:

    error_page  497  =301  http://$host$request_uri;


--
Igor Sysoev
http://nginx.com/support.html

_______________________________________________
nginx-ru mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Ответить