Skip to content

Commit 2223c72

Browse files
committed
rename exclusion rules config files
1 parent d70f25c commit 2223c72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
134134
&& git clone --depth 1 https://github.com/SpiderLabs/owasp-modsecurity-crs \
135135
&& cd owasp-modsecurity-crs \
136136
&& mv crs-setup.conf.example crs-setup.conf \
137+
&& cd rules \
138+
&& mv REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.example REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf \
139+
&& mv RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf.example RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf \
137140
&& printf "include /etc/nginx/modsec.d/modsecurity.conf\ninclude /etc/nginx/modsec.d/owasp-modsecurity-crs/crs-setup.conf\ninclude /etc/nginx/modsec.d/owasp-modsecurity-crs/rules/*.conf\n" > /etc/nginx/modsec.d/main.conf \
138141
&& cd /usr/src \
139142
&& git clone --depth 1 https://github.com/SpiderLabs/ModSecurity-nginx.git \

0 commit comments

Comments
 (0)