Set error_page follow reverse proxy kind

killed nginx-forum at nginx.us
Sat Jul 21 09:13:56 UTC 2012


Oki, fixed

#=========
server {
listen 192.168.1.10:80 default rcvbuf=8192 sndbuf=16384 backlog=32000;
server_name _ ;
charset off;
access_log /var/log/nginx_host_general.access.log main;
location / {
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://192.168.1.20;
client_max_body_size 2m;
client_body_buffer_size 8k;
proxy_buffering on;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 120;
proxy_buffer_size 16k;
proxy_buffers 32 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
		error_page 404 /404.html;
		location = /404.html {
			root /usr/local/nginx/html;
		}

		error_page 500 502 503 504 /50x.html;
			location = /50x.html {
		root /usr/local/nginx/html;
		}
}
include /usr/local/nginx/vhosts/*.conf;
}
#========

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228722,228818#msg-228818



More information about the nginx mailing list