108 server {
109 listen 443 ssl ;
110 listen 80;
111 server_name www.linux.org;
112 error_page 497 https://www.linux.org ; //error_page497 重定向
113 ssl_certificate /root/3;
114 ssl_certificate_key /root/dty_nopass.key;
115
116 ssl_session_cache shared:SSL:1m;
117 ssl_session_timeout 5m;
118 ssl on ;
119 ssl_ciphers HIGH:!aNULL:!MD5;
120 ssl_prefer_server_ciphers on;
121 location / {
122 root html;
123 index index.html index.htm;
124 }
125 }
转载于:https://my.oschina.net/loveleaf/blog/484823