diff --git a/CSDN博文备份/Nginx配置文件提示upstream路径错误-147995963.md b/CSDN博文备份/Nginx配置文件提示upstream路径错误-147995963.md new file mode 100644 index 0000000..91654cf --- /dev/null +++ b/CSDN博文备份/Nginx配置文件提示upstream路径错误-147995963.md @@ -0,0 +1 @@ +

错误的信息为:



nginx: [emerg] "upstream" directive is not allowed here 

原因和解决


这里的原因是改了配置文件upstream存的的位置不对所以导致报错的。


需要把 upstream 放入http 里面保存重启nginx就解决了。




2025-05-15_10-55-31




Nginx 配置文件提示 upstream 路径错误 - DevOps - iSharkFly错误的信息为: nginx: [emerg] "upstream" directive is not allowed here 原因和解决这里的原因是改了配置文件upstream存的的位置不对所以导致报错的。 需要把 upstream 放入http 里面保存重启nginx就解决了。https://www.isharkfly.com/t/nginx-upstream/17299




\ No newline at end of file