引言
阿里云长期提供免费的SSL证书,第一年SSL证书到期后。重新申请新的证书即可。申请地址。
数字证书管理服务(原SSL证书)
进入上述管理页面。 按照步骤提示进行操作。 大概五分钟内即可完成审核工作。然后就可以根据您的需求进行资源下载。
配置
- Nginx配置 这边我的服务器使用的是Nginx进行转发。 重点将nginx如何配置进行描述。
server {
listen 80;
server_name www.xxx.com;
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
rewrite ^(.*) https://$server_name$1 permanent;
}
server {
listen 443 ssl;
server_name www.xxx.com;
ssl_certificate /home/web/bpmn-xxx/ssl/www.xxx.com.pem;
ssl_certificate_key /home/web/bpmn-xx/ssl/www.xxx.com.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
root /home/web/bpmn-xx/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location ~ ^/(images|img|javascript|js|css|flash|media|static)/ {
root /home/web/bpmn-modeler/;
autoindex on;
access_log off;
expires 30d;
}
}