Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Running mod_security in virtual hosts |
|
Author |
|
noblecomputing
Joined: 18 Nov 2005 Posts: 3
|
Posted: Sun 20 Nov '05 17:55 Post subject: Running mod_security in virtual hosts |
|
|
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: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 20 Nov '05 19:21 Post subject: |
|
|
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 |
|
|
|
|
|
|