首页
分类
Links
About Me
Search
1
安装scim-googlepinyin@谷歌拼音输入法教程及错误解决办法
56,133 阅读
2
Windows下IP释放、更新、以及清除本地DNS缓存相关命令
11,732 阅读
3
中国移动烽火HG267GT、 HG260GT、烽火HG6821M光猫超级账号和超级密码
10,942 阅读
4
在 windows下刷日本 FC2 WHR-G301N路由器openwrt和DD-WRT教程(适用于XP/win7/win8)
10,314 阅读
5
微软skydrive网盘图片+MP3外链测试WordPress
8,601 阅读
杂文
学习
系统
电商
优惠
免费
软件
硬件
登录
Search
标签搜索
Godaddy
windows7
windows
WordPress
nginx
VPS
域名优惠码
openwrt
linux
优惠码
信用卡
免费空间
htaccess
Google
域名
Typecho
web.config
windows8
LEDE
主机
V-ZONE
累计撰写
127
篇文章
累计收到
282
条评论
首页
栏目
杂文
学习
系统
电商
优惠
免费
软件
硬件
页面
分类
Links
About Me
搜索到
2
篇与
的结果
2020-08-20
Cloudflare开启HTTPS/SSL后无限301跳转的解决方法
Cloudflare使用中有时候会遇到开启HTTPS后,无限301跳转的情况,这个其实是跟我们设置的加密方式有关。CloudFlare 启用 SSL 可选模式可能一般人都是选的 Flexible,然后还有三个选项是 Off、Full、Full(strict);我们下面将访问过程详解,假设用户端到 CloudFlare 的访问称为 A,CloudFlare 到服务端的回源访问称为 B:Off:关闭SSL,全程使用 HTTP;Flexible:A 使用 HTTPS,B 使用 HTTP,称为灵活加密;Full:AB全程使用 HTTPS,允许 B 程服务端使用自签名证书;Full(strict):全程使用 HTTPS,与 Full 的区别在于服务端必须使用有效的可信任证书;我们遇到的循环301重定向主要表现:访问任何页面都是重定向循环,包括任何静态文件;去掉SSL之后访问正常,也就是80端口访问正常,而443端口访问一定出现循环重定向。当我们尝试把Flexible设为 Full 或者 Full(strict) ,然后给服务器端配上可信证书。这个故障的总结分析:出现这个故障的大部分服务器都是因为服务器端使用了强制HTTPS,CloudFlare 的Flexible策略原理是:用户访问时使用HTTPS访问到CF的节点,然后CF通过HTTP方式回源到你的服务器去读取数据,这个时候对于你的服务器来说,CF就是访客,所以服务器返回的状态都是 301。解决方法很简单,将 SSL 策略设为 Full 或者 Full(strict) 就能解决。
2020年08月20日
1 阅读
0 评论
0 点赞
2016-08-15
给已经编译安装了的nginx 添加http_ssl_module和http_v2_module模块方法(让Web服务器支持SSL和http2)
昨天给AMH4.2升级nginx后,想要使网站使用https,支持SSL和HTTP2,今天给网站<a href="https://vzone.me/873/" target="_blank">配置nginx规则</a>的时候,重启nginx却失效。 仔细检查规则后突然想起之前老版本的nginx只编译安装了SSL(http_ssl_module模块),却没有编译安装https(http_v2_module模块)。所以又开始百度找高手写的文章学习怎么不重装nginx的情况下添加新的http_v2_module模块,让其支持http2好了下面开始添加方法:nginx -V 然后我们可以看得到这样的信息。<strong>1、首选<span style="color:#303030;font-family:微软雅黑, "font-size:16px;line-height:32px;">看下编译安装nginx的时候,都编译安装的哪些模块。</span></strong> nginx version: nginx/1.9.9 built by gcc 4.7.2 (Debian 4.7.2-5) built with OpenSSL 1.0.1e 11 Feb 2013 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_gzip_static_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_uwsgi_module --without-http_scgi_module仔细看就发现已经安装了http_ssl_module模块,缺少http_v2_module模块; 2、进入之前下载并解压了的源码包目录;重新编译nginx <span> </span> cd /usr/local/src/nginx-1.8.03、在刚才得到的编译信息后面添加http_v2_module模块在 ./configure 中加入:--with-http_v2_module ,如果没有 SSL 支持,还需要加入--with-http_ssl_module ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_gzip_static_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_uwsgi_module --without-http_scgi_module --with-http_v2_module 4、输入命令make进行编译 这一步千万不能 make install ;不然会把之前已经安装的nginx 覆盖掉 <strong>5、需要替换nginx二进制文件,先停止掉nginx进程;备份一下原来的启动脚本。</strong> cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old; cp objs/nginx /usr/local/nginx/sbin/nginx; 6、查看nginx的模块,看下是否把需要的模块编译进去了 nginx -V 7、最后重新启动nginx
2016年08月15日
1,973 阅读
1 评论
0 点赞