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: Running mod_security in virtual hosts
Author
noblecomputing



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
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
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>

or

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

or

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


Steffen
Back to top


Reply to topic   Topic: Running mod_security in virtual hosts View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules