Welcome! Log In Create A New Profile

Advanced

Re: SSL NGINX + SSL IIS

October 23, 2011 04:30AM
On Sun, Oct 23, 2011 at 01:49:26PM +0700, Мисбах-Соловьëв Вадим wrote:
> что-то типа:
> server {
> #listen [::]:80; #раскомментировать если надо-то
> listen *:80;
> #listen [::]:443 ssl; #раскомментировать если надо
> listen *:443 ssl;
> ssl on;
> ssl_certificate ...;
> ssl_certificate_key ...;
> #ssl_client_certificate ...; # раскомментировать если надо
> server_name VPS www.VPS;
> access_log ...;
> error_log ...;
> if ($scheme = "http") {
> rewrite ^/(.*)$ https://$server_name/$1 permanent;
> }

> Ну или около того. По крайней мере у меня настроено похожим образом. Хотя частенько рекомендуют http и https разносить по разным server {}.

Разумеется, разносить. Особенно, учитывая, что единственное предназначение
http сервера - делать редирект на https.


--
Igor Sysoev

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

SSL NGINX + SSL IIS

Fixid October 23, 2011 01:20AM

Re: SSL NGINX + SSL IIS

Мисбах-Соловьëв Вадим October 23, 2011 01:32AM

Re: SSL NGINX + SSL IIS

Fixid October 23, 2011 01:34AM

Re: SSL NGINX + SSL IIS

Мисбах-Соловьëв Вадим October 23, 2011 01:42AM

Re: SSL NGINX + SSL IIS

Fixid October 23, 2011 01:45AM

Re: SSL NGINX + SSL IIS

Fixid October 23, 2011 02:07AM

Re: SSL NGINX + SSL IIS

Fixid October 23, 2011 02:52AM

Re: SSL NGINX + SSL IIS

Мисбах-Соловьëв Вадим October 23, 2011 02:04AM

Re: SSL NGINX + SSL IIS

Мисбах-Соловьëв Вадим October 23, 2011 02:50AM

Re: SSL NGINX + SSL IIS

Igor Sysoev October 23, 2011 04:30AM

Re: SSL NGINX + SSL IIS

Fixid October 23, 2011 10:05AM

Re: SSL NGINX + SSL IIS

mva October 23, 2011 10:22AM

Re: SSL NGINX + SSL IIS

Fixid October 23, 2011 10:30AM

Re: SSL NGINX + SSL IIS

mva October 23, 2011 10:54AM

Re: SSL NGINX + SSL IIS

Igor Sysoev October 25, 2011 06:36AM

Re: SSL NGINX + SSL IIS

Fixid October 24, 2011 07:04AM

Re: SSL NGINX + SSL IIS

Igor Sysoev October 25, 2011 06:36AM

Re: SSL NGINX + SSL IIS

Alexey Morozov October 25, 2011 06:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready