3 Nov 11:49
Re: Filtering 404's and 500's
Ivan Ristic <ivanr <at> webkreator.com>
2005-11-03 10:49:22 GMT
2005-11-03 10:49:22 GMT
Philippe Bourcier wrote: > > Hi, > > On a reverse proxy, I'm trying to filter HTTP 404 and HTTP 500 errors. > > I'm using the following rule : > SecFilterSelective OUTPUT "HTTP\/(0\.9|1\.0|1\.1) 404 Not Found" > and the 500 one is similar. > > I've tried a few other ones, but this one looks fine to me. > > It doesn't work, why ? > Could it be that the headers are not part of "OUTPUT" ? That's exactly why. In 1.9 there is a new variable OUTPUT_STATUS. It contains only the response code. Try using that. -- -- Ivan Ristic Apache Security (O'Reilly) - http://www.apachesecurity.net Open source web application firewall - http://www.modsecurity.org ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php(Continue reading)
RSS Feed