更新时间:2024-06-13 GMT+08:00
分享

not all conf included in vhosts or slb_conf

问题现象

SLB部署失败,日志详细信息提示如下:

"not all conf included in vhosts or slb_conf"

解决方法

  1. 执行如下两条命令。
    grep "^[ \t]*include" /opt/huawei/openresty/nginx/conf/nginx.conf|grep -v "include mime.types;"|grep -v "'lua/nginx.http.lua.conf'"|grep -v "include vhosts/"|grep -v "include slb_conf/"
    find /opt/huawei/openresty/nginx/conf/vhosts/ -type f|xargs grep "^[ \t]*include"|grep -v "include geoip.txt;"|grep -v "include geoip_country.txt;"|grep -v "include vhosts/"
  2. 根据以上两条命令的结果进行调整(将出现的内容注释掉),然后重新部署即可。

相关文档