博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
location if (.....) #if与中括号之间要有空格
阅读量:6872 次
发布时间:2019-06-26

本文共 742 字,大约阅读时间需要 2 分钟。

 

[root@web01 default]# /app/server/nginx/sbin/nginx -tnginx: [emerg] unknown directive "if(!-e" in /app/server/nginx/conf/vhosts/default.conf:11nginx: 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 -tnginx: the configuration file /app/server/nginx/conf/nginx.conf syntax is oknginx: 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)$

 

转载地址:http://ffpfl.baihongyu.com/

你可能感兴趣的文章
学java的目的是大数据和人工智能,勿忘初心!
查看>>
Python入门篇-基础语法
查看>>
poj 1523 SPF
查看>>
matploitlib plot 的marker--new
查看>>
CRUX下实现进程隐藏(2)
查看>>
【转载】mysql 开启慢查询 清空slow_log日志或者slow_log表
查看>>
在电子商务里,一般会提到这样几个词:商品、单品、SPU、SKU
查看>>
【转】mysql-5..6.23-win64.zip安装及配置
查看>>
dotnet Core 学习(三):多项目
查看>>
个人总结阅读作业
查看>>
Superset 制作图表
查看>>
国有航空为啥“放下身段”读春秋?
查看>>
Pinpoint 安装部署
查看>>
TCP/UDP常见端口参考
查看>>
[转] VB6.0 Dictionary 排序,生成Sign
查看>>
selenium IDE安装与使用
查看>>
GNU C - Using GNU GCC __attribute__ mechanism 02 Variable Attribute && Type Attribute
查看>>
java 反射机制的概念
查看>>
回调函数和钩子函数的区别
查看>>
jsp之tomcat安装
查看>>