Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

How Do I Resolve "ModSecurity: Found another rule with the same id" error?

$
0
0

I am using ModSecurity on my Ubuntu 20.11 box for use with Apache2 and I am getting the following error when adding the following rule to my custom ruleset: ModSecurity: Found another rule with the same id

My rule is below:

# Block access to restricted filesSecRule REQUEST_FILENAME "@pmFromFile restricted-files.data" \"id:123456,\     phase:1,\     deny,\     log,\     msg:'Restricted File Access Attempt',\ 

I have tried several different rule IDs and I get the same error every time. I have also used the grep command to find duplicate rules and only one instance appears.

How can I fix this issue?


Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>