You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
816 B
30 lines
816 B
5 years ago
|
server {
|
||
|
listen 80;
|
||
|
#listen [::]:80;
|
||
|
server_name wx.yimian.xyz;
|
||
|
rewrite ^(.*)$ https://$host$1 permanent;
|
||
|
}
|
||
|
|
||
|
|
||
|
server {
|
||
|
#listen 80;
|
||
|
#listen [::]:80;
|
||
|
listen 443 ssl;
|
||
|
|
||
|
server_name wx.yimian.xyz;
|
||
|
root /home/yimian/www/wx;
|
||
|
index index.php index.html;
|
||
|
|
||
|
ssl_certificate /home/yimian/ssl/star.yimian.xyz.ssl/star.yimian.xyz.crt; #2
|
||
|
ssl_certificate_key /home/yimian/ssl/star.yimian.xyz.ssl/star.yimian.xyz.key; #3
|
||
|
|
||
|
ssl_session_cache shared:SSL:1m;
|
||
|
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;
|
||
|
#error_page 404 = /404.php;
|
||
|
|
||
|
include /home/ushio/conf/nginx/default.d/*.conf;
|
||
|
}
|