#说明:申请ssl 时候需要先关闭转跳到443,默认到80端口,否则验证证书过慢或者无法通过 [root@eisc ~]# cat /www/server/panel/vhost/nginx/eisc.conf server listen 443 ssl; listen 80; # 需要同时监听 80 和 443端口,否则在转跳的时候出现无法访问 server_name www.eisc.cn eisc.cn; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/www; include enable-php-72.conf; include /www/server/panel/vhost/rewrite/www.eisc.cn.conf; #-------- 证书配置 ---------# ssl_certificate /www/wwwroot/www/ssl443/4862920_eisc.cn.pem; ssl_certificate_key /www/wwwroot/www/ssl443/4862920_eisc.cn.key; # 证书的绝对路径 也可以 ./ssl443/ 当前目录下的文件 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; #------- ssl 301 转跳 -----# if ($server_port = 80){ rewrite ^(/.*)$ https://$host$1 permanent; if ($server_port = 80){ rewrite ^(/cs/.*)$ http://work.eisc.cn$1 permanent; #----------------------------# location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) return 404; location ~ \.well-known{ allow all; location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ expires 30d; error_log off; access_log /dev/null; location ~ .*\.(js|css)?$ expires 12h; error_log off; access_log /dev/null; access_log /www/wwwlogs/www.eisc.cn.log; error_log /www/wwwlogs/www.eisc.cn.error.log;
近几年,互联网行业蓬勃发展,在互联网浪潮的冲击下,互联网创业已成为一种比较...
背景 我们知道 如果在Kubernetes中支持GPU设备调度 需要做如下的工作 节点上安装...
基本介绍 给定 n 个权值作为 n 个叶子节点,构造一颗二叉树,若该树的带权路径长...
在Python开发过程中,我们难免会遇到多重条件判断的情况的情况,此时除了用很多...
本文转载自公众号读芯术(ID:AI_Discovery)。 这一刻你正在应对什么挑战?这位前...
溢价 域名 的续费价格如何?通常来说,因为溢价域名的价值高于普通域名,所以溢...
本文转载自微信公众号「bugstack虫洞栈」,作者小傅哥 。转载本文请联系bugstack...
TIOBE 公布了 2021 年 3 月的编程语言排行榜。 本月 TIOBE 指数没有什么有趣的变...
想了解更多内容,请访问: 51CTO和华为官方战略合作共建的鸿蒙技术社区 https://...
前言 统计科学家使用交互式的统计工具(比如R)来回答数据中的问题,获得全景的认...