Welcome! Log In Create A New Profile

Advanced

Re: Not listing proxy_pass port 8009

July 23, 2013 01:04PM
the port in proxy_pass is not for listening/accepting incoming
connections - it is for connecting outwards to another server/service
You must have something else (another httpd, probably not nginx)
listening on 8009......?


On 23/07/13 17:39, imran_kh wrote:
> Hello,
>
> I am using Nginx web server and getting error “502 bad gateway” while
> accessing some sites.
> I have observed that, proxy_pass port is not listing in the server.
>
> e.g.:- In above configuration example.com is running on port 80 and
> proxy_pass localhost is running on port 8009.
> Port 80 is listing perfectly but port 8009 is not listing because of this
> reason example.com is not working. Please suggest me on this.
>
> 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;
> }
> }
>
> Thanks,
> Imran Khan.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241157,241157#msg-241157
>
> _______________________________________________
> 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: 55
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