windows系統(tǒng)做ppt下載網(wǎng)站搜索引擎營(yíng)銷的主要模式
1、注冊(cè)域名
2、獲取證書(shū)
3、下載證書(shū)
下載下來(lái)的證書(shū)所有格式
4、在服務(wù)器上下載nginx并配置
nginx的配置文件 如下
server {listen 80;listen 443 ssl;server_name delegate.letspiu.net.cn;ssl on; #開(kāi)啟ssl#指定證書(shū)位置ssl_certificate /etc/ssl/certs/letspiu.net.cn_bundle.pem;ssl_certificate_key /etc/ssl/certs/letspiu.net.cn.key;ssl_session_cache shared:SSL:1m;ssl_session_timeout 5m;#ssl_ciphers HIGH:!aNULL:!MD5;ssl_prefer_server_ciphers on;#ssl_session_timeout 5m; #會(huì)話超時(shí)時(shí)間ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #加密算法ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #SSL協(xié)議#重定向請(qǐng)求location / {proxy_http_version 1.1; #代理使用的http協(xié)議proxy_pass http://127.0.0.1:8090;}
}
docker-compose的配置
nginx:container_name: nginxnetwork_mode: hostimage: "9a53df624b74"deploy:resources:limits:cpus: '0.5'memory: 2048Mvolumes:- ./nginx/www:/var/www- ./nginx/logs:/var/log/nginx- ./nginx/cert:/etc/nginx/cert- ./nginx/conf.d:/etc/nginx/conf.d
特別注意、特別注意、特別注意、特別注意、特別注意、特別注意
在使用https請(qǐng)求時(shí),會(huì)有證書(shū)不安全的問(wèn)題,
原因 原因 原因 原因
是因?yàn)榕渲米C書(shū)時(shí)綁定的域名,只支持www.或者原始域名 如下:
只有這里顯示的域名配置在nginx使用https顯示才是安全的。