Welcome! Log In Create A New Profile

Advanced

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar
July 24, 2013 03:38PM
Go back over all your nginx conf files, making sure to look at included
files as well... it seems that somewhere you have "listen 8080" and
possibly overlapping "server_name" directives.

If that fails, I'd suggest you backup then throw out your current
config, then start simple and build it up one piece at a time, testing
each addition. E.g., start with just a single "server" block, get it
working, then add the next one, etc. etc.

_Nik

On 7/24/2013 12:19 PM, imran_kh wrote:
> Hello,
>
> I have observed that, Nginx configured on port 80 as per
> /etc/nginx/sites-enabled/default file but it is listening on port 8080 and
> 80. Please see the details for the same.
>
> server {
> listen 80;
> server_name example.com;
>
> location / {
> proxy_pass http://localhost:8009;
> send_timeout 6000;
> proxy_read_timeout 120;
> proxy_connect_timeout 120;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
> }
> }
>
> Port 8080 is listening on Public IP address.
> # sudo netstat -anop | grep :8080
> tcp 0 0 Public_IP:8080 0.0.0.0:* LISTEN
> 18674/nginx off (0.00/0/0)
>
> Port 80 is listening on 0.0.0.0
> # sudo netstat -anop | grep :80
> tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
> 18674/nginx off (0.00/0/0)
>
> When I am trying to start the nginx service without init.d script getting
> below message.
>
> #sudo /usr/sbin/nginx
> [sudo] password for xyz:
> nginx: [warn] conflicting server name " example.com " on 0.0.0.0:80,
> ignored
> nginx: [warn] conflicting server name " example1.com " on 0.0.0.0:80,
> ignored
> nginx: [warn] conflicting server name "example.com " on 0.0.0.0:80, ignored
> nginx: [warn] conflicting server name "example2.com " on 0.0.0.0:80,
> ignored
> nginx: [emerg] bind() to Public_IP:8080 failed (98: Address already in use)
> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> nginx: [emerg] bind() to Public_IP:8080 failed (98: Address already in use)
> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> nginx: [emerg] bind() to Public_IP:8080 failed (98: Address already in use)
> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> nginx: [emerg] bind() to Public_IP:8080 failed (98: Address already in use)
> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> nginx: [emerg] bind() to Public_IP:8080 failed (98: Address already in use)
> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> nginx: [emerg] still could not bind()
>
> Thanks,
> Imran Khan.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241157,241203#msg-241203
>
> _______________________________________________
> 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

Not listing proxy_pass port 8009

imran_kh July 23, 2013 12:39PM

Re: Not listing proxy_pass port 8009

B.R. July 23, 2013 12:58PM

Re: Not listing proxy_pass port 8009

dbradfield July 23, 2013 01:04PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 02:45PM

Re: Not listing proxy_pass port 8009

Miguel C. July 23, 2013 02:58PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 03:20PM

Re: Not listing proxy_pass port 8009

Jonathan Matthews July 23, 2013 04:34PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 07:41PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 08:02PM

Re: Not listing proxy_pass port 8009

Miguel C. July 23, 2013 08:10PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 08:20PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 08:32PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 08:44PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 09:16PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 09:36PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 10:00PM

Re: Not listing proxy_pass port 8009

imran_kh July 24, 2013 03:19PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 24, 2013 03:38PM

Re: Not listing proxy_pass port 8009

imran_kh July 24, 2013 04:36PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 24, 2013 06:00PM

Re: Not listing proxy_pass port 8009

imran_kh July 24, 2013 05:50PM

Re: Not listing proxy_pass port 8009

naseeb0077 July 24, 2013 08:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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