Ok,
I read LocationMatch documentation, but i couldn't find any easy and
practical way of write the location i tryied this way:
/pelo/
<LocationMatch /[pP][eE][lL][oO]/>
secfilter hola
</LocationMatch>
it works fine but it's not easy to write, anyone know a better way to do
this?
thanks you
----- Original Message -----
From: "Ivan Ristic" <iv...@we...>
To: "Diego Pellegrino" <die...@ho...>
Cc: <mod...@li...>
Sent: Thursday, February 23, 2006 4:22 PM
Subject: Re: [mod-security-users] lowercase and uppercase
>Diego Pellegrino wrote:
>>I have the following question
>>
>>I am using mod_security acting as proxy with apache/linux the web server
>>is running on windows server.
>>
>>if i use directives like
>>
>></location /prueba/hola.html>
>>secfilter chau redirect:/pepe.html
>></localtion>
>>
>>when someone connect using
>>
>>http://mysite/prueba/hola.html?chau
>>
>>filter works fine.
>>
>>but if i make that request:
>>
>>http://mysite/PRUEBA/HOLA.html?chau the filter doesn't work because the
>>uppercase dosen't match with <location> directive.
>>
>>anyone know how to convert requests to lowercase or uppercase in an easy
>>way using mod_rewrite or something else?
>
> Try LocationMatch:
>
> http://httpd.apache.org/docs/2.2/mod/core.html#locationmatch.
>
> Or use multiple ModSecurity rules, chained (once you make them work ;)
>
>--
>Ivan Ristic, Technical Director
>Thinking Stone, http://www.thinkingstone.com
>ModSecurity: Open source Web Application Firewall
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live
>webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>mod-security-users mailing list
>mod...@li...
>https://lists.sourceforge.net/lists/listinfo/mod-security-users
>
|