nginx系列(五)关于错误页面的配置
返回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
相关推荐
csstpeixun 2020-06-28
Dreamya 2020-06-09
lanzhusiyu 2019-12-30
霸王棍 2011-05-12
麦当劳 2011-12-15
yanghan 2011-09-15
wawaboss 2012-04-10
yxlnum 2014-01-05
lwly 2019-06-27
wodetian 2019-06-21
zmosquito 2012-11-07
HAcSeeking 2012-09-14
liaochengseo 2014-07-04
gzweihuo 2014-01-11
raksmart0 2011-12-05
yixu0 2011-08-30
yongzhang 2018-08-24
Macuroon 2018-05-15