测试Nginx服务器开启pagespeed加速 By duncan21Posted on 2016 年 10 月 31 日2016 年 10 月 31 日Posted in LinuxTagged ngixn, pagespeedNo Comments on 测试Nginx服务器开启pagespeed加速 #进入 nginx 源码同级目录,我的是在/root下面 cd /root #下载最新的稳定版模块 wget https://github.com/pagespeed/ngx_pagespe[……] 阅读全文 Read More
nginx防止sql注入攻击安全设置 By duncan21Posted on 2016 年 10 月 31 日Posted in LinuxTagged sql注入No Comments on nginx防止sql注入攻击安全设置 cat security.conf ## Block SQL injections if ($request_uri ~* "[+|(%20)]union[+|(%20)]") { ret[......]阅读全文 Read More
工作中nginx的重写案例记录 By duncan21Posted on 2016 年 10 月 31 日Posted in LinuxTagged 301, nginx, rewriteNo Comments on 工作中nginx的重写案例记录 需求: 因为运营的需求,需要将所有网站的目录test1的访问请求跳转到tes2, 如何将abc.com/test1/1.html ?301跳转到#abc.com/test2/1.html([……] 阅读全文 Read More