We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 360691b commit de2564fCopy full SHA for de2564f
1 file changed
.github/workflows/test-ci-windows.yml
@@ -314,6 +314,7 @@ jobs:
314
}
315
316
$modSecurityConfigFile = "$modSecurityConfigDir\modsecurity_iis.conf"
317
+ $modsecConf = "$modSecurityConfigDir\modsecurity.conf"
318
319
$crsRules = @(
320
"Include coreruleset/crs-setup.conf",
@@ -325,8 +326,7 @@ jobs:
325
326
327
Add-Content -Path $modSecurityConfigFile -Value $crsRules
328
- (Get-Content -Path "$modSecurityConfigDir\modsecurity.conf") -replace 'SecRuleEngine DetectionOnly', 'SecRuleEngine On' | Set-Content -Path "$modSecurityConfigDir\modsecurity.conf"
329
-
+ (Get-Content -Path $modsecConf) -replace 'SecRuleEngine DetectionOnly', 'SecRuleEngine On' | Set-Content -Path $modsecConf
330
331
catch {
332
Write-Error "Failed to install OWASP Core Rules: $($_.Exception.Message)"
0 commit comments