标签:
location ^~ /zenghui {
root /www_root;
proxy_intercept_errors on;
error_page 404 = @error_page_404;
error_page 403 = @error_page_404;
}
location @error_page_404 {
set $orginal_uri $uri;
proxy_pass http://wdzj$orginal_uri;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
标签:
原文地址:http://www.cnblogs.com/zenghui940/p/4613059.html