/etc/nginx/nginx.conf文件添加:
server {
listen 443 ssl;
#ssl on;
server_name backstage.magiplay.com;
access_log /data2/log/nginx/nginx_access.log ;
error_log /data2/log/nginx/nginx_error.log warn;
root html;
index index.html index.htm index.php;
ssl_certificate /etc/nginx/ssl/1_backstage.magiplay.com_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/2_backstage.magiplay.com.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; #按照这个套件配置
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://47.254.17.129:9993;
}
}
1_backstage.magiplay.com_bundle.crt 和 2_backstage.magiplay.com.key 是https认证文件