【已完美解决】nginx 1.21/1.22 错误 nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
错误具体图片如下
Nginx配置规则错误:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
这个问题 找到一个靠谱的解决方案
但朕还是未解决
这里还是要总结一下
网友问题
Hi,
I’m starting nginx service and it gives this error:
Nginx rule configuration error:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
解决方案
you can input there parameter like this. then “Module ngx_http_secure_link_module” will work!
Name: ngx_http_secure_link_module
Parameter: --with-http_secure_link_module
这个大体的意思呢 就是宝塔里 首先卸载原版本
然后编译安装 安装时候 按照下图整上一个模块
上面的原文在此
https://forum.aapanel.com/d/4942-nginx-configuration-file-wwwservernginxconfnginxconf-test-failed
朕按照这个方法试了
可能是版本的问题?
图中版本是1.21 我用的1.22 难道就不行吗?
另外还有一个解决方案
https://stackoverflow.com/questions/22306006/configuration-file-etc-nginx-nginx-conf-test-failed-how-do-i-know-why-this-h
由于全是英文 也需要较强的动手能力
朕未测试 仅供参考
无论如何 本文只能整理至此了
2023.08.29 中文时分 朕解决了 具体如下
(互联网 全网都没有的解决方案 博主原创的解决方案
一律给本站VIP会员可见 本方案/方法系博主自己整理 不保证能100%解决您的问题哦
限本站VIP会员可见 点此加入VIP 敬请谅解! )
此处内容需要权限查看