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