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: Compile options for mod_security
Author
mvierow0



Joined: 31 Oct 2025
Posts: 3
Location: Pollock Pines, CA

PostPosted: Fri 31 Oct '25 21:33    Post subject: Compile options for mod_security Reply with quote

There is a configure-time option available in mod_security that allows some directives to be used in .htaccess files which would be really helpful for me. I don't believe this option was used however, as I get server errors despite enabling AllowOverride Options.

The option is mentioned in bullet #4 in the mod_security reference manual.

https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v2.x)#start-apache-httpd

(bbcode url tag broke this post.)

I'm curious the thoughts on this, if it was ever considered, and the possibility it might in the future.
Back to top
mvierow0



Joined: 31 Oct 2025
Posts: 3
Location: Pollock Pines, CA

PostPosted: Fri 31 Oct '25 21:39    Post subject: Reply with quote

The parenthesis in this link is breaking the url feature of this editor, whether I use BBCode or not.

Code:
https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v2.x)#start-apache-httpd
Back to top
nono303



Joined: 20 Dec 2016
Posts: 215
Location: Lille, FR, EU

PostPosted: Mon 03 Nov '25 16:25    Post subject: Reply with quote

hi @mvierow0
You may have a look on
Code:
HTACCESS_CONFIG

cf. https://github.com/owasp-modsecurity/ModSecurity/blob/v2/master/apache2/apache2_config.c#L3734
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 400
Location: UK

PostPosted: Mon 03 Nov '25 18:57    Post subject: Reply with quote

Coincidentally, I've just posted a HOWTO for building ModSecurity (https://www.apachelounge.com/viewtopic.php?p=43794), based on the previous CMAKE HOWTO build for Apache (https://www.apachelounge.com/viewtopic.php?t=8609)

I have included the HTACCESS_CONFIG option in the build configuration.
Back to top
mvierow0



Joined: 31 Oct 2025
Posts: 3
Location: Pollock Pines, CA

PostPosted: Mon 03 Nov '25 19:51    Post subject: Reply with quote

Thank you for this. Currently a little above my pay grade, but I do have a really big bag of chips. Time to dig in.
Back to top


Reply to topic   Topic: Compile options for mod_security View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules