Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 07bcc8f

Browse files
committed
fixing whitespace issue and repo
1 parent b2ec5ca commit 07bcc8f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

crs-setup.conf.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ SecDefaultAction "phase:2,log,auditlog,pass"
645645
#
646646
# Blocking based on reputation is permanent in the CRS. Unlike other rules,
647647
# which look at the indvidual request, the blocking of IPs is based on
648-
# a persistent record in the IP collection, which remains active for a
648+
# a persistent record in the IP collection, which remains active for a
649649
# certain amount of time.
650650
#
651651
# There are two ways an individual client can become flagged for blocking:

util/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM owasp/modsecurity:latest
1+
FROM owasp/modsecurity:v2_master
22
MAINTAINER Chaim Sanders [email protected]
33

44
ENV PARANOIA=1
@@ -8,10 +8,13 @@ RUN dnf -y update
88
RUN dnf -y install python
99

1010
RUN cd /opt && \
11-
wget https://github.com/SpiderLabs/owasp-modsecurity-crs/archive/v3.0.2.tar.gz && \
12-
tar -xvzf v3.0.2.tar.gz && \
11+
#wget https://github.com/SpiderLabs/owasp-modsecurity-crs/archive/v3.0.2.tar.gz && \
12+
#tar -xvzf v3.0.2.tar.gz && \
13+
git clone https://github.com/csanders-git/owasp-modsecurity-crs owasp-modsecurity-crs-3.0.2 && \
1314
cp -R /opt/owasp-modsecurity-crs-3.0.2/ /etc/httpd/modsecurity.d/owasp-crs/ && \
1415
mv /etc/httpd/modsecurity.d/owasp-crs/crs-setup.conf.example /etc/httpd/modsecurity.d/owasp-crs/crs-setup.conf && \
16+
cd /etc/httpd/modsecurity.d/owasp-crs/ && \
17+
git checkout v3.0/dev-za && \
1518
cd /etc/httpd/modsecurity.d && \
1619
printf "include modsecurity.d/owasp-crs/crs-setup.conf\ninclude modsecurity.d/owasp-crs/rules/*.conf" > include.conf && \
1720
sed -i -e 's/SecRuleEngine DetectionOnly/SecRuleEngine On/g' /etc/httpd/modsecurity.d/modsecurity.conf

0 commit comments

Comments
 (0)