Welcome! Log In Create A New Profile

Advanced

Bad gateway error from nginx

Basil Kurian
March 31, 2011 01:18AM
Hi

I configured Nginx to serve as a reverse proxy for Apache. Sometimes
Nginx is giving bad gateway error.

This is how nginx configuration is done

server {
 client_max_body_size 20M;
 listen  80;
 server_name  sq-fe1.example.com;
 access_log  /var/log/nginx/proxy.access.log;
 error_log /var/log/nginx/proxy.error.log;

 location / {
   limit_conn   one  100;
   proxy_set_header Host $host;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_pass http://127.0.0.1:8080;
proxy_buffers 8 16k;
proxy_buffer_size 32k;

 }
}

--
Regards

Basil Kurian

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Bad gateway error from nginx

Basil Kurian March 31, 2011 01:18AM

Re: Bad gateway error from nginx

vetri March 31, 2011 01:38AM

Re: Bad gateway error from nginx

Igor Sysoev March 31, 2011 02:02AM

Re: Bad gateway error from nginx

Basil Kurian April 01, 2011 06:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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