SSL, multiple server blocks, same domain?
Igor Sysoev
igor at sysoev.ru
Mon Dec 14 13:05:45 MSK 2009
On Mon, Dec 14, 2009 at 09:46:58AM +0000, Phillip Oldham wrote:
> Igor Sysoev wrote:
> > You should define the "ssl" once, and then use it without the "ssl":
> >
> > listen 443 ssl;
> >
> > listen 443;
> >
> > listen 443;
> >
>
> Thanks Igor. That's now working.
>
> Can I ask in which nginx version the directive `ssl on;` was deprecated
> in favor of `listen 443 ssl;`?
It is not considered as deprecated, at least now. If you set "ssl on"
on server level, then requests to *:80 has to be HTTPS too.
As to the "ssl" parameter:
http://nginx.org/en/docs/http/configuring_https_servers.html#compatibility
The “ssl” parameter of the “listen” directive has been supported since 0.7.14.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list