jdk1.8
halo-1.4.2.jar
server {
#SSL 访问端口号为 443
listen 443 ssl;
#填写绑定证书的域名
server_name qiyon.com www.qiyon.com;
#证书文件名称
ssl_certificate 1_qiyon.com_bundle.crt;
#私钥文件名称
ssl_certificate_key 2_qiyon.com.key;
ssl_session_timeout 5m;
#请按照以下协议配置
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#请按照以下套件配置,配置加密套件,写法遵循 openssl 标准。
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
#网站主页路径。此路径仅供参考,具体请您按照实际目录操作。
proxy_pass http://42.193.126.198:8090/;
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
#填写绑定证书的域名
server_name qiyon.com www.qiyon.com;
#把http的域名请求转成https
return 301 https://$host$request_uri;
}