Hi,
I need help, how i can use litespeed + modsec rules from apache config file. Here is my steps:
- install lite speed 4.2.15 Std Linux (x86) on CentOS release 5.10 (Final) using install.sh
- configuration->server->general:
- Load Apache Configuration -> yes
- Auto Reload On Changes -> (deprecated) Yes
- Apache Configuration File -> /usr/local/lsws/conf/my.conf
- Actions -> Graceful Restart
- /usr/local/lsws/bin/lswsctrl reload
- /usr/local/lsws/bin/lswsctrl restart
- /usr/local/lsws/bin/lswsctrl stop
- /usr/local/lsws/bin/lswsctrl start
here is apache config my.conf:
The rule have to block any requests to server with param "aaa=aaa"
litespeed config from /usr/local/lsws/conf/http_config.xml and my.conf attached.
Thanks in advance.
I need help, how i can use litespeed + modsec rules from apache config file. Here is my steps:
- install lite speed 4.2.15 Std Linux (x86) on CentOS release 5.10 (Final) using install.sh
- configuration->server->general:
- Load Apache Configuration -> yes
- Auto Reload On Changes -> (deprecated) Yes
- Apache Configuration File -> /usr/local/lsws/conf/my.conf
- Actions -> Graceful Restart
- /usr/local/lsws/bin/lswsctrl reload
- /usr/local/lsws/bin/lswsctrl restart
- /usr/local/lsws/bin/lswsctrl stop
- /usr/local/lsws/bin/lswsctrl start
here is apache config my.conf:
Code:
<IfModule mod_security2.c>
SecRuleEngine DetectionOnly
SecDebugLog /opt/modsecurity/var/log/debug.log
SecDebugLogLevel 3
SecAuditEngine RelevantOnly
SecAuditLogParts ABCDEFHKZ
# Use a single file for logging.
SecAuditLogType Serial
SecAuditLog /opt/modsecurity/var/log/audit.log
SecDefaultAction phase:2,log,deny,status:501
SecRule ARGS:aaa "@rx aaa" "phase:2,log,deny,status:501"
</IfModule>
litespeed config from /usr/local/lsws/conf/http_config.xml and my.conf attached.
Thanks in advance.
Attachments
-
9 KB Views: 5
-
400 bytes Views: 5
Last edited by a moderator: