Quantcast

custom ip address on port 80 not listening

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

custom ip address on port 80 not listening

Musta Fa
nginx/1.11.13


i have 4 server IPs, all registered in network interface
and many domains and apps, also on different ports.

all other ports are ok:
custom_ip1:443, custom_ip1:5000, custom_ip1:81
custom_ip2:443, custom_ip2:5000, custom_ip2:81
custom_ip3:443, custom_ip3:5000, custom_ip3:81

but i can not make it listen on custom_ip:80
port 80 is always 0.0.0.0:80

cd /etc/nginx
grep listen -r *
only "listen custom_ip:80;"

why is that??

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: custom ip address on port 80 not listening

Francis Daly
On Sat, Apr 08, 2017 at 08:46:57AM +0100, Musta Fa wrote:

Hi there,

> but i can not make it listen on custom_ip:80
> port 80 is always 0.0.0.0:80
>
> cd /etc/nginx
> grep listen -r *
> only "listen custom_ip:80;"
>
> why is that??

Any server{} without an explicit "listen" has an implicit "listen *:80"
when you run as root.

Does

  nginx -T | grep -n 'server\|listen'

show any obvious candidates?

        f
--
Francis Daly        [hidden email]
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Loading...