nginx设置return 200 并返回指定字符串
配置如下
location / {
set $upstream_name "10.x.x.x:8711";
more_set_headers 'Content-Type: text/html; charset=utf-8';
return 200 "系统已经迁移至 xz.test.com,相关问题请咨询xxx";
proxy_passhttp://$upstream_name;
}
访问返回
系统已经迁移至 xz.test.com,相关问题请咨询xxx
页:
[1]