HTTPS 证书配置

# # HTTPS server configuration # 配置文件默认位于 [root@hexingxing conf.d]# pwd # /etc/nginx/conf.d # server { listen 443; ssl on; server_name yourname.com; #指向服务器的域名 root /yourdir/httpfile; #网页文件存放在位置 index index.php index.html index.htm; ssl_certificate /etc/nginx/sslkey/yourpemcode.pem; #cert.pem 文件,注意文件