nginx: [emerg] unknown "scripts" variable

简介: [root@master conf]# /opt/nginx/sbin/nginx -s reload<br><p><span style="color:#3333ff">nginx: [emerg] unknown "scripts" variable</span></p> <p><br></p> <p>记录一下,还没有找到解决方案(欢迎留言)</p> <p><br></p> <
[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


目录
相关文章
|
8月前
|
应用服务中间件 nginx
Mac Nginx nginx: [emerg] mkdir() “/usr/local/var/run/nginx/client_body_temp“ failed ...
Mac Nginx nginx: [emerg] mkdir() “/usr/local/var/run/nginx/client_body_temp“ failed ...
158 2
|
3月前
|
应用服务中间件 网络安全 nginx
解决nginx:[emerg]unknown directive ssl错误
解决nginx:[emerg]unknown directive ssl错误
195 0
|
8月前
|
应用服务中间件 nginx
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
204 1
|
4月前
|
应用服务中间件 nginx C++
nginx: [emerg] unknown directive “rtmp“ in ./../conf/nginx.conf:16
nginx: [emerg] unknown directive “rtmp“ in ./../conf/nginx.conf:16
|
7月前
|
应用服务中间件 网络安全 nginx
nginx开启ssl报错: [emerg] "server" directive is not allowed here ...
nginx开启ssl报错: [emerg] "server" directive is not allowed here ...
128 0
|
8月前
|
应用服务中间件 nginx
Nginx nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp"
Nginx nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp"
147 0
|
9月前
|
应用服务中间件 nginx
nginx: [emerg] duplicate location “/“ in /usr/local/etc/nginx/nginx.conf:142
nginx: [emerg] duplicate location “/“ in /usr/local/etc/nginx/nginx.conf:142
178 0
|
应用服务中间件 Linux nginx
Linux下启动Nginx时报错:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Linux下启动Nginx时报错:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
575 0
Linux下启动Nginx时报错:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
|
应用服务中间件 网络安全 nginx
Nginx - 配置 SSL 报错 nginx: [emerg] unknown directive “ssl“
Nginx - 配置 SSL 报错 nginx: [emerg] unknown directive “ssl“
532 0
Nginx - 配置 SSL 报错 nginx: [emerg] unknown directive “ssl“
|
16天前
|
移动开发 前端开发 JavaScript
前端vue2、vue3去掉url路由“ # ”号——nginx配置(一)
前端vue2、vue3去掉url路由“ # ”号——nginx配置
49 0