30fcee313005cf38c2e572bdd0c6600e

centos nginx nginx: [emerg] unknown directive "if"?

lb563Nginx 節點 中發起
最後由 chitsaou回應 , 916次閱讀

这是什么情况?我启动nginx的时候出现: nginx: [emerg] unknown directive "if" in /opt/nginx/conf/nginx.conf:16 google 一下也没有打到答案有没有和我一样遇到过的呢?

截至 ,共收到 1 條回應
36b1f565fc83d9b67588123f2171b896
chitsaou 1樓, 於回應

就是你的設定檔寫錯了... 在不該出現 if 的地方出現 if

需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊