fenghuoliuxing0 2014-01-07
返回404状态码----需要利用反向代理
error_page404/404_main/$document_uri;
#404
location/404_main{
proxy_passhttp://10.10.128.62:8084/;
proxy_redirecthttp://10.10.128.62:8084//;
proxy_set_headerHost$host;
proxy_set_headerX-Forwarded-For$http_x_forwarded_for;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerREMOTE-HOST$remote_addr;
}
返回200的状态码----后面直接配置HTTP的URL