# Correct commands to enable nonssl, ssl, ipv6, spdy

**URL:** <https://www.ruby-forum.com/t/correct-commands-to-enable-nonssl-ssl-ipv6-spdy/220677>\
**Category:** NGINX\
**Created:** [June 16, 2012, 12:29pm UTC](https://www.ruby-forum.com/t/correct-commands-to-enable-nonssl-ssl-ipv6-spdy/220677 "2012-06-16T12:29:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 16, 2012, 12:29pm UTC](https://www.ruby-forum.com/t/correct-commands-to-enable-nonssl-ssl-ipv6-spdy/220677/1 "2012-06-16T12:29:21Z")

</div>

Wanting to enable ssl+spdy+ipv6 on port 443, and ipv6 on port 80.

```
server {
    server_name secure.domain.com;
    #
    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?

---

<div class="post-metadata">

**Author:** ![stimpy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Post date:** [June 18, 2012, 12:48pm UTC](https://www.ruby-forum.com/t/correct-commands-to-enable-nonssl-ssl-ipv6-spdy/220677/2 "2012-06-18T12:48:23Z")

</div>

On Saturday 16 June 2012 14:28:47 Ryan B. 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.

> **[Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#listen)**
>
> This directive appeared in version 1.11.8.

> **[Module ngx\_http\_ssl\_module](http://nginx.org/en/docs/http/ngx_http_ssl_module.html)**

wbr, Valentin V. Bartenev
