Welcome! Log In Create A New Profile

Advanced

Re: ipv4 & ipv6 Virtual Hosting - address in use

December 01, 2010 03:12PM
On Wed, Dec 01, 2010 at 02:24:24PM -0500, David J. wrote:

> I have latest nginx configured;
>
> I have one that is purely ipv6 and one that is purely ipv4;
>
> They both work fine in a multi-server environment;
>
> server {
> listen 80;
> # listen [::]:80 ipv6only=on;
>
> server_name domain1.com;
>
> #charset koi8-r;
>
> #access_log logs/host.access.log main;
>
> location / {
> root html;
> index index.html index.htm;
> }
>
> }
>
> server {
> listen 80;
> # listen [::]:80 ipv6only=on;
>
> server_name domain2.com;
>
> #charset koi8-r;
>
> #access_log logs/host.access.log main;
>
> location / {
> root html;
> index index.html index.htm;
> }
> }
>
> If I un-comment to bind to ipv6 as well as ipv4; when nginx starts it
> complains the address is in use;
>
> I saw a patch for this here is the post;
>
> But according to that post it has been included in 8.39 I am using 8.53

What OS do you use ?

This
listen 80;
listen [::]:80 ipv6only=on;
should work, however, if you add "ipv6only=on" to existant configuration
and reload it using -HUP, then it does not work. You should stop nginx
and start it again due to the IPV6_V6ONLY option behaviour.


--
Igor Sysoev
http://sysoev.ru/en/

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

ipv4 & ipv6 Virtual Hosting - address in use

David J. December 01, 2010 02:36PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

Igor Sysoev December 01, 2010 03:12PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

António P. P. Almeida December 01, 2010 03:20PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

David J. December 01, 2010 03:28PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

Igor Sysoev December 01, 2010 03:34PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

petteyg359 December 26, 2010 03:36PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

Maxim Dounin December 27, 2010 08:44AM

Re: ipv4 & ipv6 Virtual Hosting - address in use

petteyg359 December 27, 2010 10:55AM

Re: ipv4 & ipv6 Virtual Hosting - address in use

Maxim Dounin December 27, 2010 12:12PM

Re: ipv4 & ipv6 Virtual Hosting - address in use

mikiso October 13, 2011 09:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready