You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may also copy ``C:\work\curl-7.54.0\curl.exe`` to ``C:\Apache2427\bin``, if you want to use the cURL command-line program.
125
+
You may also copy ``C:\work\curl-8.18.0\curl.exe`` to ``C:\Apache2466\bin``, if you want to use the cURL command-line program.
126
+
127
+
Download OWASP CRS from https://github.com/coreruleset/coreruleset/releases/latest and unzip it into ``C:\Apache2466\conf\owasp_crs``
120
128
121
-
Download the core rules from http://sourceforge.net/projects/mod-security/files/modsecurity-crs/0-CURRENT/ and unzip them into ``C:\Apache2427\conf\modsecurity_crs``
129
+
For example, download ``coreruleset-4.x.x.zip``, extract it, and rename the extracted directory to ``owasp_crs``.
122
130
123
131
Add configuration directives to your Apache conf\httpd.conf:
124
132
@@ -130,8 +138,9 @@ Add configuration directives to your Apache conf\httpd.conf:
130
138
<IfModule security2_module>
131
139
SecRuleEngine On
132
140
SecDataDir logs
133
-
Include conf/modsecurity_crs/*.conf
134
-
Include conf/modsecurity_crs/base_rules/*.conf
141
+
# Include OWASP CRS configuration
142
+
Include conf/owasp_crs/crs-setup.conf
143
+
Include conf/owasp_crs/rules/*.conf
135
144
SecAuditEngine RelevantOnly
136
145
SecAuditLogRelevantStatus "^(?:5|4\d[^4])"
137
146
SecAuditLogType Serial
@@ -144,31 +153,31 @@ Add configuration directives to your Apache conf\httpd.conf:
144
153
Edit the top of ``C:\work\mod_security\apache2\mlogc-src\Makefile.win`` and set your local paths
145
154
146
155
# Path to Apache httpd installation
147
-
BASE = C:\Apache2427
156
+
BASE = C:\Apache2466
148
157
149
158
# Paths to required libraries
150
-
PCRE = C:\work\pcre-8.40
151
-
CURL = C:\work\curl-7.54.0
159
+
PCRE = C:\work\pcre2-10.47
160
+
CURL = C:\work\curl-8.18.0
152
161
153
162
# Linking libraries
154
163
LIBS = $(BASE)\lib\libapr-1.lib \
155
164
$(BASE)\lib\libaprutil-1.lib \
156
-
$(PCRE)\pcre.lib \
157
-
$(CURL)\libcurl_imp.lib \
165
+
$(PCRE)\pcre2-8.lib \
166
+
$(CURL)\libcurl.lib \
158
167
wsock32.lib
159
168
160
169
Build the ``mlogc.exe`` program:
161
170
162
171
CD C:\work\mod_security_trunk\mlogc
163
172
NMAKE -f Makefile.win
164
173
165
-
Copy ``mlocg.exe`` to ``C:\Apache2427\bin\``
174
+
Copy ``mlocg.exe`` to ``C:\Apache2466\bin\``
166
175
167
-
Create a new command file ``C:\Apache2427\bin\mlogc.bat`` with one line:
176
+
Create a new command file ``C:\Apache2466\bin\mlogc.bat`` with one line:
0 commit comments