Welcome! Log In Create A New Profile

Advanced

Re: IPv4 & IPv6

B.R.
April 05, 2013 08:04PM
I have indeed several virtual servers.

I have a specific one which serves different content whether a client
connects in HTTP or HTTPS (basically the HTTP content provides directions
for the HTTPS setup).
I also have one virtual server which I want listening on IPv4 only, not
IPv6.

That's why I prefer managing the listen directives in virtual servers
rather than in the 'http' directive block.

Is there no other mean than using global 'listen' directives?
---
*B. R.*


On Fri, Apr 5, 2013 at 6:21 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Apr 05, 2013 at 06:07:23PM -0400, B.R. wrote:
>
> > Hello,
> >
> > @Maxim
> > I tried the duplicate configuration entries:
> > listen 80;
> > listen [::]:80 ipv6only=on;
> >
> > I has the following error:
> > nginx: [emerg] duplicate listen options for [::]:80 in
> > /etc/nginx/conf.d/***.conf:3
>
> If you have multiple virtual server{}s with the same listening
> sockets used, you have to specify listening options in a single listen
> directive only.
>
> That is, add "ipv6only=on" to a listen directive in first/default
> server in your configuration. This will do the trick.
>
> --
> Maxim Dounin
> http://nginx.org/en/donation.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

IPv4 & IPv6

B.R. April 05, 2013 04:20PM

Re: IPv4 & IPv6

Maxim Dounin April 05, 2013 05:44PM

Re: IPv4 & IPv6

Ted Lemon April 05, 2013 05:48PM

RE: IPv4 & IPv6

Lukas Tribus April 05, 2013 05:50PM

Re: IPv4 & IPv6

B.R. April 05, 2013 06:10PM

Re: IPv4 & IPv6

Maxim Dounin April 05, 2013 06:22PM

Re: IPv4 & IPv6

B.R. April 05, 2013 08:04PM

Re: IPv4 & IPv6

B.R. April 05, 2013 08:50PM

Re: IPv4 & IPv6

B.R. April 06, 2013 02:28AM

Re: IPv4 & IPv6

Maxim Dounin April 06, 2013 06:40AM

Re: IPv4 & IPv6

B.R. April 06, 2013 10:54AM

Re: IPv4 & IPv6

B.R. April 06, 2013 11:04AM

Re: IPv4 & IPv6

Igor Sysoev April 06, 2013 11:24AM

Re: IPv4 & IPv6

B.R. April 06, 2013 04:08PM

Re: IPv4 & IPv6

Jim Ohlstein April 06, 2013 04:46PM

Re: IPv4 & IPv6

Igor Sysoev April 07, 2013 02:40AM

Re: IPv4 & IPv6

Maxim Dounin April 06, 2013 05:26PM

Re: IPv4 & IPv6

B.R. April 06, 2013 05:46PM

Re: IPv4 & IPv6

Ted Lemon April 05, 2013 06:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
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