40 articles
Friday, Apr 3, 2020
If you want to further improve the security of the website, for example, to prevent the website from being collected more effectively, You can try to ...
编译nginx时出现了下面的告警 nginx "--with-ipv6" option is deprecated 查阅相关文档,原来最新版的nginx编译不需要添加--with-ipv6命令 最新版的nginx默认已经自带ipv6模块
nginx 开启http3 QUIC和配置Brotli压缩和反向代理的详细教程 nginx 配置http3 QUIC参阅这篇文章 https://www.vpslala.com/t/403 在上面的配置中编译Nginx时添加以下代码 git clone https://github.com/goog...
Nginx: emerg unknown directive" setrealipfrom " appears because nginx is missing the realip module Add the realip module to compile again. . . ./confi...
出现nginx: emerg unknown directive "setrealipfrom"是因为nginx缺少了realip模块 重新添加realip模块编译即可。。。 ./configure --prefix=/usr/local/nginx --user=www-data --group=...
如果想进一步提高网站的安全性,比如比较有效的防止网站被采集, 可以尝试把服务器只能为来自cloudflare 的Ip 链接 其实这种方法很简单,不过国外已经有人写好了脚本。。。 这里就用该脚本配置nginx只能来自cloudflare的IP链接 编辑Nginx.conf文件载入cloudflare....
Friday, Mar 27, 2020
nginx据说早官方就表示会支持QUIC,但是迟迟没有发布相关的版本 主打安全和加速的CDN厂商cloudflare发布了基于nginx的QUIC补丁 安装环境依赖和编译工具 apt-get install build-essential automake autoconf make git cma...
Tuesday, Mar 3, 2020
Litespeed这里不在详细介绍了 Litespeed是商业的web服务器,付费的,要给美金的。 可能是面对nginx的强势竞争。。。目前Litespeed开启了一款免费的套餐 主要限制就是内存不能大于2G,CPU内核也只能使用单核。。。 目前一般的web服务器够用了。。。。 下面是详细的教程。。...
Friday, Feb 28, 2020
有很深的强迫症 就是喜欢域名带www 不带www,就心里不舒服。。。。 第一种就是使用.htaccess文件实现跳转 .htaccess文件使用apache服务器以及litespeed/openlitespeed 下面是代码。。。 http跳转https RewriteCond %{SERV...
Sunday, Nov 3, 2019
闲的蛋疼。手里又又个吃灰的服务器就折腾一下directadmin 安装directadmin也浪费了我两天时间。 虽然directadmin官方声明支持Debian系统 但在使用Debian系统时一直没有安装成功 最后换成centos 7安装就成功了 下面是一些把directadmin的apache...