nginx: [emerg] unknown "scripts" variable

[root@master conf]# /opt/nginx/sbin/nginx -s reload

nginx: [emerg] unknown "scripts" variable

记录一下,还没有找到解决方案(欢迎留言)

1 修改

重新修该了nginx.conf 可以了,定位 是配置文件 local错误

参考

Example

You get the request "/info/" and have the following configuration:

fastcgi_index  index.php;
fastcgi_param  SCRIPT_FILENAME  /home/www/scripts/php$fastcgi_script_name;

SCRIPT_FILENAME would equal "/home/www/scripts/php/info/index.php", but using $request_filename it would just be "/home/www/scripts/php/info/".

When using it's important as well. See here for further help:http://wiki.nginx.org/HttpFastcgiModule#fastcgi_split_path_info

时间: 2024-12-23 15:44:44

nginx: [emerg] unknown "scripts" variable的相关文章

openfire-nginx 配置错误 unknown directive "hash"

问题描述 nginx 配置错误 unknown directive "hash" 这是配置文件里的一段 upstream openfire9090{ server 192.168.10.211:9090; server 192.168.10.212:9090; hash $http_x_forwarded_for;//说是这里没有 hash指令? } server { listen 9090; server_name localhost; location / { proxy_pass

nginx的if(!-e)问题[emerg]: unknown directive “if(!-e” in

一.我遇到nginx的url重写问题 nano /usr/local/nginx/conf/nginx.conf if(!-e $request_filename){     #这里就是一些url重写的规则 } 当重启的时候,报错:[emerg]: unknown directive "if(!-e" in /usr/local/nginx/conf/nginx.conf:124 二.问题解决 问题在于,if和(之间必须有个空格 应改成: if (!-e $request_filena

PostgreSQL实现MySQL"insertignore"语法

          对MySQL熟悉的人可能都知道,MySQL 有一个"insert ignore" 语法来忽略已经存在的记录. PostgreSQL暂时不提供这样的语法,但是可以用其他方法来代替. t_girl=# d insert_ignore Table "ytt.insert_ignore" Column | Type | Modifiers ----------+------------------------+----------- id | integ

信息- VBScript 运行时错误 类型不匹配: '[string: ""]' line 12

问题描述 VBScript 运行时错误 类型不匹配: '[string: ""]' line 12 <%Option Explicit%> <%dim cartstrcartstr = getCartFromCookie()if (cartstr=NULL or cartstr ="""") then response.redirect ""Cart.asp"" response.ende

LNMP环境nginx: [emerg] open()错误问题解决办法

今天晚上遇到网友在LNMP一键包环境中在人为操作错误导致网站打不开,老蒋开始被告知是需要处理WordPress后台获取不到主题编辑权限,于是根据惯例删除scandir参数就可以,不过估计值钱他操作失误导致某个文件丢失.在我重启Nginx的时候出现这样的提示:    代码如下 复制代码 Starting nginx... nginx: [emerg] open() "/home/wwwlogs/nginx_error.log" failed (2: No such file or dir

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)错误解决方法

今天在ubuntu10.04上面安装nginx,安装完成之后尝试启动nginx,使用命令:  代码如下 复制代码 sudo /etc/init.d/nginx start 结果发现启动不了,出现如下错误提示 hankcs@ubuntu:~$ sudo /etc/init.d/nginx start [sudo] password for hankcs:  * Starting nginx nginx                                                 

nginx: [emerg] &quot;fastcgi_pass&quot; directive is duplicate in /etc/nginx/sites-enabled/default:57

/************************************************************************************************ * nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/default:57 * 说明: * VPS安装Ubuntu 16.04,调一下Nginx的PHP Server. * * 20

SGE 提交任务,显示unknown resource &amp;amp;quot;nodes&amp;amp;quot;

问题描述 SGE 提交任务,显示unknown resource "nodes" 我使用SGE集群提交运行脚本,希望使用4个计算节点,使用了-l参数,如下: qsub -pe orte 4 -l nodes=4 run.sh 但是提示: Unable to run job, unknown resource "nodes" 请高手帮助!!

nginx: [warn] conflicting server name &amp;quot;www.dedecms8.com&amp;quot; on 0.0.0.0:80, ignored

重启web环境的时候,提示下面的错误: nginx: [warn] conflicting server name "www.dedecms8.com" on 0.0.0.0:80, ignored 原来是原因是相同的域名www.dedecms8.com出现两次甚至是多次 解决办法:删除重复的conf站点配置文件