随笔分类 -  nginx

nginx + https +shiro 退出异常,定向到http
摘要:nginx代理https之后,使用的Shiro点退出一直跳到http 在nginx配置文件中设置 proxy_redirect http:// https:// 解决了不输入login会跳转到http的问题,但是由于项目中配置了检查session的过滤器,异常后会根据requset.getSchem 阅读全文

posted @ 2020-12-02 18:33 八方鱼 阅读(897) 评论(0) 推荐(0)

windows+openresty+lua_waf配置
摘要:1.下载waf,https://github.com/unixhot/waf 下载后的目录如下: 2.Linux操作系统中由于可以设置软连接,按照网上操作说明,将waf文件夹直接copy到nginx的conf目录下,然后通过ln –s 命令,将openresty的lualib中的resty文件夹软连 阅读全文

posted @ 2020-12-01 21:42 八方鱼 阅读(1051) 评论(0) 推荐(1)

nginx 在windows中的日志切割
摘要:@echo off taskkill /F /IM nginx.exe > nul rem @echo off rem 取1天之前的日期 echo wscript.echo dateadd("d",-1,date) >%tmp%\tmp.vbs for /f "tokens=1,2,3* delim 阅读全文

posted @ 2018-11-20 18:09 八方鱼 阅读(2252) 评论(0) 推荐(0)