# IPv4+IPv6 SSL

**URL:** <https://www.ruby-forum.com/t/ipv4-ipv6-ssl/202170>\
**Category:** NGINX\
**Created:** [January 24, 2011, 1:37am UTC](https://www.ruby-forum.com/t/ipv4-ipv6-ssl/202170 "2011-01-24T01:37:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 24, 2011, 1:37am UTC](https://www.ruby-forum.com/t/ipv4-ipv6-ssl/202170/1 "2011-01-24T01:37:46Z")

</div>

I switched on ipv6, this domain uses ipv4+ssl without issue, however  
when I use ipv6 with the same domain I get an error (only occurs from  
an ipv6 connection)

SSL received a record that exceeded the maximum permissible length.  
(Error code: ssl\_error\_rx\_record\_too\_long)

```
server {
    server_name secure.fanboy.co.nz;
    listen 443;
    listen [2607:f358:1:fed5:22:0:92ce:2627]:443 ipv6only=on;
    gzip on;
    gzip_comp_level 1;
    gzip_types text/plain text/html text/css

```

application/x-javascript text/xml text/javascript;  
gzip\_static on;  
gzip\_http\_version 1.1;  
gzip\_proxied any;  
gzip\_disable “msie6”;  
gzip\_vary on;  
ssl on;  
ssl\_ciphers RC4:ALL:-LOW:-EXPORT:!ADH:!MD5;  
keepalive\_timeout 0;  
ssl\_certificate /root/server.pem;  
ssl\_certificate\_key /root/ssl.key;

```
       location / {
            root /var/www;
            index index.html index.htm index.php;
        }

```

}
