Welcome! Log In Create A New Profile

Advanced

Re: Nginx not spawning both ipv4 and ipv6 workers

July 26, 2016 05:18PM
So I was finally able to resolve this, but not in any way I've seen described anywhere else.

I set "net.ipv6.bindv6only = 1" in /etc/sysctl.conf and reloaded via "sudo sysctl -p". Then with the configuration "listen 80; listen [::]:80;" I now get my workers split evenly between ipv4 and ipv6 and now I can connect from either ip source.

nginx 2096 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2096 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2097 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2097 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2098 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2098 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2099 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2099 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2100 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2100 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2101 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2101 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2102 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2102 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
nginx 2103 www-data 6u IPv4 286321 0t0 TCP *:http (LISTEN)
nginx 2103 www-data 7u IPv6 286322 0t0 TCP *:http (LISTEN)
Subject Author Posted

Nginx not spawning both ipv4 and ipv6 workers

Charles Lawrence July 25, 2016 08:26PM

Re: Nginx not spawning both ipv4 and ipv6 workers

FinalX July 26, 2016 04:48AM

Re: Nginx not spawning both ipv4 and ipv6 workers

geuis July 26, 2016 04:47PM

Re: Nginx not spawning both ipv4 and ipv6 workers

geuis July 26, 2016 07:10PM

Re: Nginx not spawning both ipv4 and ipv6 workers

Maxim Dounin July 26, 2016 12:44PM

Re: Nginx not spawning both ipv4 and ipv6 workers

geuis July 26, 2016 04:39PM

Re: Nginx not spawning both ipv4 and ipv6 workers

geuis July 26, 2016 05:18PM

Re: Nginx not spawning both ipv4 and ipv6 workers

geuis July 26, 2016 07:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready