logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_security 2.7.3 not working on Windows 7
Author
Fairfielder1



Joined: 19 Apr 2013
Posts: 3

PostPosted: Fri 19 Apr '13 15:45    Post subject: mod_security 2.7.3 not working on Windows 7 Reply with quote

I am using Apache as a reverse proxy server. I am running Apache on a Windows 7 64 bit box. I downloaded and installed Apache 2.2.22 win 32
and mod_security 2.7.3 win 32 for Apache 2.2 from the apachelounge web site and followed the installation instructions, including the installation of the Visual C++ 2010 SP1 Redistributable Package x86. After installation I
tried testing mod_security using the method described in the Readme file
included in the mod_security zip archive:

I added this rule:
SecRule ARGS "\.\./"
"t:normalizePathWin,id:50904,severity:4,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,msg:'Drive
Access'"

After re-starting Apache I called my site with this:
http://www.xxxx.com/?abc=../../ (substituting my website)

The docs say:
"You should get a access denied and is logged in the Apache error.log, it is
triggered by the above rule."

I did not get an access denied page and did not see anything in the Apache
error.log to indicate that mod-security blocked access.

Any ideas why?

Can I run the win 32 mod_security binary from apache lounge on a 64 bit win box? I didn't see any 64 bit download option.

Fairfielder1
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 19 Apr '13 16:59    Post subject: Reply with quote

Did you added also the following ?

SecRuleEngine On
SecDefaultAction "deny,phase:2,status:403"

And the rule is one line, not splitted in three line as you show.

Steffen
Back to top
Fairfielder1



Joined: 19 Apr 2013
Posts: 3

PostPosted: Sat 20 Apr '13 2:05    Post subject: Solved Reply with quote

Yes, I added those lines.
I rebooted the web server computer and now it's working.
Back to top


Reply to topic   Topic: mod_security 2.7.3 not working on Windows 7 View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules