correct commands to enable nonssl, ssl, ipv6, spdy

Valentin V. Bartenev ne at vbart.ru
Mon Jun 18 10:47:23 UTC 2012


On Saturday 16 June 2012 14:28:47 Ryan Brown wrote:
> Wanting to enable ssl+spdy+ipv6 on port 443, and ipv6 on port 80.
> 
>     server {
>         server_name secure.domain.com;
>         #
>         listen [::]80;

  listen [::]:80;

>         listen [::]:443 ssl spdy default ipv6only=on;
>         #listen       [::]:443;
>         #listen [::]:443 ssl default_server=on;
>         #listen        [::]:443 spdy default ipv6only=on;
>        [...]
>       }
> 
> I've tried various methods, but the https isn't working.. whats the
> correct command to enable all such options?
> 

  listen [::]:443 ssl spdy default_server ipv6only=on; 
 
Should work. And don't forget to configure certificate.

http://nginx.org/r/listen
http://nginx.org/en/docs/http/ngx_http_ssl_module.html

 wbr, Valentin V. Bartenev



More information about the nginx mailing list