配置完rewrite之后重启nginx发现如下错误

"server" directive is not allowed here in*

原因是因为 外部配置的simple.conf没有include到nginx.conf的http{}里面

修改nginx.conf之后解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-12-01
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2021-11-04
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2019-11-20
相关资源
相似解决方案