Linux Archive

Linux Archive (
-   Debian User (
-   -   Bad gateway error from nginx (

Basil Kurian 03-30-2011 09:34 AM

Bad gateway error from nginx

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;
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_buffers 8 16k;
proxy_buffer_size 32k;



Basil Kurian

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: AANLkTimOxpZ_zK4tRQa=8SwdVmPxZoN8kk4CuA6pWdTa@mail">

All times are GMT. The time now is 03:14 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.