【发布时间】:2014-08-03 21:34:18
【问题描述】:
我正在尝试在 Nginx 上安装 ssl 证书(实际上是 laravel forge)。我已将证书与中间体连接起来,并且在 Nginx 错误日志中没有收到任何错误。但是,它在移动 chrome 中不受信任 - 只有桌面。
查看 Qualys ssl 测试,它说链是不完整的。不过我不明白。
这是我的 Nginx 配置
server {
listen 80;
server_name **********.com;
return 301 https://**********.com$request_uri;
}
server {
listen 443 ssl;
server_name **********.com;
root /home/forge/**********.com/public;
# FORGE SSL (DO NOT REMOVE!)
ssl on;
ssl_certificate /etc/nginx/ssl/**********.com/1086/server.pem;
ssl_certificate_key /etc/nginx/ssl/**********.com/1086/server.key;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/**********.com-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
有人可以帮忙吗?这几天我一直在拔头发。
【问题讨论】: