小编Mat*_*att的帖子

Nginx 未知的“https”变量

我今天早上醒来发现我一直在自学的新 Nginx 服务器不再为网站提供服务。看起来这是因为 Nginx 不再运行。但是,当我尝试启动它时,出现此错误:

Starting nginx: nginx: [emerg] unknown "https" variable
                                                           [FAILED]
Run Code Online (Sandbox Code Playgroud)

现在据我所知,没有任何变化,昨天运行良好,但到目前为止我没有查到任何帮助我找到解决方案的方法。

如果我运行 service nginx restart ,我会得到以下信息:

nginx: [emerg] unknown "https" variable
nginx: configuration file /etc/nginx/nginx.conf test failed
Run Code Online (Sandbox Code Playgroud)

到目前为止,我已经找到了关于此的所有内容,例如这里和其他一些地方:http : //www.howtoforge.com/forums/showthread.php? t =60733说要注释掉但是,fastcgi_params 一开始我就没有这些行。

我也试过注释掉对 https 的引用只是为了看看会发生什么,但它似乎没有任何区别。

我的 Nginx.conf 文件是:

user              nginx;
worker_processes  1;

#error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
error_log  /var/log/nginx/error.log  info;

pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" …
Run Code Online (Sandbox Code Playgroud)

nginx https magento

1
推荐指数
1
解决办法
2万
查看次数

标签 统计

https ×1

magento ×1

nginx ×1