17 Aug 15:21
Re: Performance tip
From: Ivan Ristic <ivan.ristic <at> gmail.com>
Subject: Re: Performance tip
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2006-08-17 13:21:00 GMT
Subject: Re: Performance tip
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2006-08-17 13:21:00 GMT
> Does Apache2 support the 'x' option to ignore whitespace and support > comments? If so, you should be able to do this (but I have no time > right now to try it): > > SecFilterSelective VAR "(?x: > KEYWORD1| #comment > KEYWORD2| #comment > KEYWORD3 #comment > )" It does (if you write "(?x)" to enable extended regular expressions), but there is a problem with that. Apache configuration directives can only consume a single line. When you use the continuation character to spread them across several lines Apache simply concatenates the lines together. The first time you use a comment like that you will end the regular expression. In the case above, the regex will be invalid because of the missing closing parenthesis. -- -- Ivan Ristic, Technical Director Thinking Stone, http://www.thinkingstone.com ModSecurity: Open source Web Application Firewall ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
RSS Feed