FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-30-2011, 09:34 AM
Basil Kurian
 
Default Bad gateway error from nginx

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTimOxpZ_zK4tRQa=8SwdVmPxZoN8kk4CuA6pWdTa@mail .gmail.com">http://lists.debian.org/AANLkTimOxpZ_zK4tRQa=8SwdVmPxZoN8kk4CuA6pWdTa@mail .gmail.com
 

Thread Tools




All times are GMT. The time now is 05:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org