Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

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



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

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

Running mod_security in virtual hosts

Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules

View previous topic :: View next topic  
Author Message

Joined: 18 Nov 2005
Posts: 3

PostPosted: Sun 20 Nov '05 17:55    Post subject: Running mod_security in virtual hosts Reply with quote

I want to run mod_security only on certain vhosts. Is this possible ? The only thing I have done differently is put the rules into the vhost configuration. To my way of thinking, it will only search for those rules, on that domain only? Am I correct ?

Thanks in advance.
Back to top

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

PostPosted: Sun 20 Nov '05 19:21    Post subject: Reply with quote

Sure this is possible.

Also: virtualHosts will inherit the configuration from the main server but you can make changes as you wish. In 1.9 you can import or delete individual rules via their IDs.
For example:

<VirtualHost ...>
SecFilterEngine Off


<VirtualHost ...>
SecFilterInheritance off
# same configuration as the parent but no rules
# ...
# new rules here ...


<VirtualHost XYZ>
SecFilterCheckURLEncoding Off
SecFilterCheckUnicodeEncoding Off
SecFilterCheckCookieFormat Off
SecFilterNormalizeCookies Off

Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1