编辑外网访问配置文件
location ^~/contact-web {
proxy_pass http://127.0.0.1:8990/contact-web;
}
重启nginx
#nginx -t #检测配置文件内容是否有误
#/etc/init.d/nginx realod #重载,,#线上服务,尽量不重启。
上面两部就行了
#清除nginx缓存
npinx -s reload
编辑外网访问配置文件
location ^~/contact-web {
proxy_pass http://127.0.0.1:8990/contact-web;
}
重启nginx
#nginx -t #检测配置文件内容是否有误
#/etc/init.d/nginx realod #重载,,#线上服务,尽量不重启。
上面两部就行了
#清除nginx缓存
npinx -s reload