Welcome! Log In Create A New Profile

Advanced

RE: How to bind nginx to ipv4 and ipv6 interface ?

Lukas Tribus
December 20, 2012 03:30AM
> listen 80;
> listen [::]:80 ipv6only=on;

Remember that ipv6only is a socket option, and you can specify a socket option
only once per address:port pair:
> A listen directive can have several additional parameters specific to
> socket-related system calls. They can be specified in any listen
> directive, but only once for the given address:port pair.


So your config needs to look this way, if you have multiple server statements in your config:
> server {
> listen 80;
> listen [::]:80 ipv6only=on;
> [...]
> }
> server {
> listen 80;
> listen [::]:80;
> [...]
> }
> server {
> listen 80;
> listen [::]:80;
> [...]
> }


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to bind nginx to ipv4 and ipv6 interface ?

hristoc November 26, 2012 04:50PM

Re: How to bind nginx to ipv4 and ipv6 interface ?

hristoc December 19, 2012 01:25PM

Re: How to bind nginx to ipv4 and ipv6 interface ?

GreenGecko December 19, 2012 01:32PM

Re: How to bind nginx to ipv4 and ipv6 interface ?

Igor Sysoev December 19, 2012 02:02PM

RE: How to bind nginx to ipv4 and ipv6 interface ?

Lukas Tribus December 20, 2012 03:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready