今天修改了nginx.conf之后,nginx-t报错。

1. 网上多认为此错误需要修改/etc/hosts,添加该域名对应的ip

2. 我自己的解决方案是仔细核对 upstream 后面的字符 和 proxy_pass后面的字符。注意:proxy_pass后面的要加上http://,

upstream后面的域名 和 { 之间有空格

        upstream tomcat_item.soa { 

        proxy_pass http://tomcat_item.soa;

 

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2021-08-22
  • 2021-12-02
  • 2022-02-11
  • 2021-11-15
猜你喜欢
  • 2021-07-05
  • 2022-12-23
  • 2021-07-14
  • 2021-10-13
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案