随笔分类 -  apache

摘要:一.基本 官网:http://dominia.org/djao/limitipconn2.html 二.安装 1.下载#wget http://dominia.org/djao/limit/mod_limitipconn-0.24.tar.bz2 2.tar xf mod_limitipconn-0 阅读全文
posted @ 2017-12-02 10:02 rorshach 阅读(871) 评论(0) 推荐(0)
摘要:一.简介1.goaccess用于分析apache和nginx日志的强大工具 2.官网:https://goaccess.io 二.安装1.下载goaccess的安装包wget http://tar.goaccess.io/goaccess-1.1.1.tar.gz 2.如果需要启用geoip,则1. 阅读全文
posted @ 2016-12-18 11:56 rorshach 阅读(2440) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python import os from subprocess import Popen, PIPE def getPid(): p=Popen(['pidof','httpd'],stdout=PIPE,stderr=PIPE) pids = p.stdout.read().split() return pids def paresPi... 阅读全文
posted @ 2016-11-26 13:18 rorshach 阅读(312) 评论(0) 推荐(0)
摘要:编译安装,压缩包戳我下载 帮助文档 阅读全文
posted @ 2016-11-19 11:52 rorshach 阅读(1001) 评论(0) 推荐(0)
摘要:apache2.2使用mod_remoteip模块 一.安装 wget https://github.com/ttkzw/mod_remoteip-httpd22/raw/master/mod_remoteip.c/usr/local/apache/bin/apxs -i -c -n mod_rem 阅读全文
posted @ 2016-10-06 20:58 rorshach 阅读(1032) 评论(0) 推荐(0)
摘要:一,查看工作模式 /usr/sbin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c 如果出现prefork.c,表示apache工作在prefork模式下 二,prefork调优 ServerLimit 300 阅读全文
posted @ 2016-04-23 09:13 rorshach 阅读(4617) 评论(0) 推荐(0)
摘要:方法一、SecRuleRemoveById 指令:通过Rule ID禁用指定规则 方法二、SecRuleRemoveByMsg指令:通过Rule Msg禁用指定规则 方法三、url加白 :对指定路径关闭WAF检测/或只记录不拦截 阅读全文
posted @ 2016-04-19 18:19 rorshach 阅读(1592) 评论(0) 推荐(0)
摘要:apache按日切分日志,使用apache自带的rotatelogs切分语法:rotatelogs [ -l ] logfile [ rotationtime [ offset ]] | [ filesizeM ]选项-l使用本地时间代替GMT时间作为时间基准。注意:在一个改变GMT偏移量(比如夏令... 阅读全文
posted @ 2015-05-23 09:32 rorshach 阅读(293) 评论(0) 推荐(0)
摘要:1.安装mod_securityyum install mod_security2.安装mod_security_crsyum install mod_security_crs3.在/etc/httpd/modsecurity.d建立exclude.conf文件用来排除无需检查的文件<IfModul 阅读全文
posted @ 2014-12-08 13:40 rorshach 阅读(1104) 评论(0) 推荐(0)