listen 443 ssl; # 注意这条规则 server_name my.domain.com; fastcgi_param HTTPS on; ssl_certificate /etc/ssl/certs/your.pem; location / { # Your config here...}