错误问题
The plain HTTP request was sent to HTTPS port
解决办法,fastcgi_param HTTPS $https if_not_empty
添加这条规则,
server {
listen 443 ssl; # 注意这条规则
server_name my.domain.com;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param HTTPS on;
ssl_certificate /etc/ssl/certs/your.pem;
ssl_certificate_key /etc/ssl/private/your.key;
location / {
# Your config here...
}
}