证书找腾讯云签的
server {
listen 12306;
charset utf-8;
server_name your_domain;
ssl on;
ssl_certificate 1_your_domain.crt;
ssl_certificate_key your_domain.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
ssl_prefer_server_ciphers on;
server_tokens off;
location / {
root /home/ftp/;
if ($request_filename ~* ^.*?\.(txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx)$){
add_header Content-Disposition: 'attachment;';
}
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}