Welcome! Log In Create A New Profile

Advanced

Re: WebSocket проксирование

March 12, 2013 06:02AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

WebSocket проксирование

Modigar March 11, 2013 03:10AM

Re: WebSocket проксирование

russjura March 11, 2013 03:30AM

Re: WebSocket проксирование

Modigar March 11, 2013 03:42AM

Re: WebSocket проксирование

ast March 11, 2013 04:55AM

Re: WebSocket проксирование

russjura March 11, 2013 04:58AM

Re: WebSocket проксирование

Modigar March 11, 2013 05:08AM

Re: WebSocket проксирование

Ruslan Ermilov March 11, 2013 05:16AM

Re: WebSocket проксирование

Modigar March 12, 2013 02:07AM

Re: WebSocket проксирование

ast March 12, 2013 05:25AM

Re: WebSocket проксирование

Maxim Dounin March 12, 2013 05:54AM

Re: WebSocket проксирование

Modigar March 12, 2013 06:28AM

Re: WebSocket проксирование

Igor Sysoev March 12, 2013 06:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready