WEB应用 基于Nginx Geo与 Nginx Map模块实现Nginx限流白名单配置 配置示例 说明: 1. geo指令定义一个白名单$whiteiplist, 默认值为1, 所有都受限制。 如果客户端IP与白名单列出的IP相匹配,则$whiteiplist值为0也就是不... 2019年10月11日 2,373 发表评论 阅读全文
WEB应用 nginx日志添加请求以及响应body 请求body添加: 在nginx配置文件log_format添加request_body:"$request_body" 响应body添加:  ... 2019年6月11日 2,185 发表评论 阅读全文
WEB应用 tomcat设置页面权限访问(BASIC认证) 环境:tomcat8.5 1.配置tomcat的tomcat-users.xml中添加下面的 角色和用户 #role 角色 user 用户 2.在项目的... 2018年8月10日 3,753 发表评论 阅读全文
WEB应用 gitlab服务器迁移 安装方式:官网一件安装或者yum rpm方式 a原始服务器 b新服务器 1.备份原a服务器上的的数据 gitlab-rake gitlab:backup... 2018年7月7日 3,294 发表评论 阅读全文
WEB应用 关于两个nginx经常忽略的细节 1.root 和alias区别 在日常的工作中,nginx server下location经常要指定到其他目录,如图片,但是这里就经常发现我是需要用root还是alias来... 2018年4月16日 3,468 发表评论 阅读全文
WEB应用 隐藏nginx,Apache,php,tomcat服务版本号 nginx 修改nginx.conf http标签 apache: 在apache配置文件httpd.conf中,加入以下代... 2017年12月25日 4,360 1 阅读全文
WEB应用 nginx利用ModSecurity构建WAF环境 官网:http://modsecurity.org/download.html owasp-modsecurity-crs:https://github.com/SpiderLabs/owasp-mo... 2017年12月6日 4,940 发表评论 阅读全文
WEB应用 cer或者pem转换为jks证书,tomcat配置证书 我们购买的证书默认给我们的是pem或者cer文件 1. 默认pem证书转换为Tomcat需要的jks ①pem或者cer文件转换... 2017年5月10日 14,070 发表评论 阅读全文
WEB应用 nginx平滑添加模块 背景:公司购买了ssl证书,但是发现线上nginx没有加入--with-http_ssl_module选项导致无法添加ssl证书,以下是添加ssl模块。 查看目前编译的参数 进入原先解压的编译目录,编... 2017年4月28日 3,041 发表评论 阅读全文