zoukankan      html  css  js  c++  java
  • location if (.....) #if与中括号之间要有空格

    [root@web01 default]# /app/server/nginx/sbin/nginx -t
    nginx: [emerg] unknown directive "if(!-e" in /app/server/nginx/conf/vhosts/default.conf:11
    nginx: configuration file /app/server/nginx/conf/nginx.conf test failed
    [root@web01 default]# grep "if" /app/server/nginx/conf/vhosts/default.conf
        if(!-e $request_filename)
        location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
    #原因是if 与 () 之间必需要有空格!!
    [root@web01 default]# /app/server/nginx/sbin/nginx -t
    nginx: the configuration file /app/server/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /app/server/nginx/conf/nginx.conf test is successful
    [root@web01 default]# grep "if" /app/server/nginx/conf/vhosts/default.conf
        if (!-e $request_filename)
        location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
  • 相关阅读:
    打印出乘法表
    python小练习1
    JavaScript 两个变量互换
    纯css3 画一个小猪佩奇
    箭头函数
    点击获取li下标的几种方式
    再见!!!!!!
    十月一前期
    大家好!!!!!!
    雕刻技
  • 原文地址:https://www.cnblogs.com/bass6/p/5725318.html
Copyright © 2011-2022 走看看