Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WebSocket проксирование
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
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|