nginx 配置方向代理出错 The character [_] is never valid in a domain name

nginx 配置方向代理出错 The character [_] is never valid in a domain name

下面是配置信息:

原因是使用的tomcat为8及以上的版本时upstream后面的名称中有_,tomcat7不会出现。去掉tomcat_server中的_即可。

猜你喜欢

转载自www.cnblogs.com/xiangxinhouse/p/12050966.html
今日推荐