Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Два SSL на одном ip
On Aug 22, 2012, at 18:22 , Tatoon wrote:
> Добрый день, каким образом можно реализовать такую схему ?
>
> server {
> listen 192.168.0.1:443 default rcvbuf=8192 sndbuf=16384
> backlog=32000;
> server_name site1.ru site2.ru;
> keepalive_timeout 180;
> if ($host = 'site1.ru'){
> ssl on;
> ssl_certificate /usr/local/nginx/conf/cert/site1.crt;
> ssl_certificate_key /usr/local/nginx/conf/cert/site1.key;
> ssl_session_cache shared:SSL:10m;
> ssl_session_timeout 10m;
> }
> if ($host != 'site1.ru'){
> ssl on;
> ssl_certificate /usr/local/nginx/conf/cert/site2.crt;
> ssl_certificate_key /usr/local/nginx/conf/cert/site2.key;
> ssl_session_cache shared:SSL:10m;
> ssl_session_timeout 10m;
> }
> ...
>
> И можно ли вообще ?
http://nginx.org/ru/docs/http/configuring_https_servers.html#name_based_https_servers
Что касается "if ($host = 'site1.ru'){":
http://nginx.org/en/docs/http/converting_rewrite_rules.html
--
Igor Sysoev
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|