Skip to content

ModSecurity 2.9.2 on Windows 2012 and IIS 8.5 #1656

Closed
@Hystreal

Description

@Hystreal

Hi !

I installed ModSecurity on my Windows Server 2012.
I added this line in the modsecurity.conf :
SecRule ARGS "@contains test" "id:'1234',deny,status:403,msg:'Our test rule has triggered'"

When i go on http://localhost/?a=test i get the 403 error as planned.

However, i configured my application by adding this line in my web.config :

ModSecurity enabled="true" configFile="C:\Program Files\ModSecurity IIS\modsecurity_iis.conf"

And when i try to go on http://localhost/myapp?a=test
there is no error whereas i should get the same 403 error.

Someone can tell me what am i doing wrong ?

Thanks you in advance.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions