Welcome! Log In Create A New Profile

Advanced

Re: Binding nginx to a single interface

Bai Shen
February 09, 2012 01:04PM
I'm using the default nginx.conf file with no changes. I've added my own
config file in the conf.d directory.

Inside that I have two server {} blocks. They both have "listen 10.1.2.3:80"
and different server_names.

Yet when I telnet to 10.1.2.4 on port 80, I get a response from nginx.

On Thu, Feb 9, 2012 at 12:51 PM, Adrián Navarro <adrian@navarro.at> wrote:

> then grep your whole config and included files/config folders for any
> listen statements, there must be something in there. i'm currently using
> the same version with multiple interfaces and different servers on each one
> and it's working fine.
>
> -a.
>
> On Thursday 9 de February de 2012 at 18:50, Bai Shen wrote:
>
> listen ip:port;
>
> I realized after I sent the email that I'd typoed that. It's the newest
> version, 1.0.11
>
> On Thu, Feb 9, 2012 at 12:45 PM, Adrián Navarro <adrian@navarro.at> wrote:
>
> listen ip:port; or listen ip port;?
>
> actually in that case it would be listening on default for the ip AND for
> the port as an address (weird scenario).
>
> version?
>
> -a.
>
> On Thursday 9 de February de 2012 at 18:42, Bai Shen wrote:
>
> I have two nics on my server. I have nginx set to listen on one of them
> using "listen 10.1.2.3 80" However, it keeps listening on the other ip as
> well. So i'm unable to start anything else on port 80 on that interface.
>
> Any ideas what could be wrong? Everything I'm finding says that the
> listen command is all I needed to do.
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Binding nginx to a single interface

Bai Shen February 09, 2012 12:44PM

Re: Binding nginx to a single interface

Adrián Navarro February 09, 2012 12:46PM

Re: Binding nginx to a single interface

Bai Shen February 09, 2012 12:52PM

Re: Binding nginx to a single interface

Adrián Navarro February 09, 2012 12:52PM

Re: Binding nginx to a single interface

Bai Shen February 09, 2012 01:04PM

Re: Binding nginx to a single interface

Bai Shen February 09, 2012 01:14PM

Re: Binding nginx to a single interface

Maxim Dounin February 09, 2012 12:56PM

Re: Binding nginx to a single interface

Bai Shen February 09, 2012 01:08PM

Re: Binding nginx to a single interface

Maxim Dounin February 09, 2012 06:36PM

Re: Binding nginx to a single interface

Bai Shen February 13, 2012 11:10AM

Re: Binding nginx to a single interface

Maxim Dounin February 13, 2012 03:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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