OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: apache and 404/404 status codes
From: tgs (tgsFINBAR.DYNDNS.ORG)
Date: Sat Jul 08 2000 - 00:11:23 CDT


On Sat, Jul 08, 2000 at 05:19:22AM +0200, Mikael Olsson wrote:
> Shelagh Pepper wrote:
> >
> > At 12:26 PM 7/7/00 +0200, Slawek wrote:
> > >Hopefully Apache has an option to map all 403 result codes to 404.
> >
> > Error codes can be mapped as follows (in conf or .htaccess files if
> > FileInfo override permission has been granted):
> > ErrorDocument 404 /Lame_excuses/not_found.html
> > ErrorDocument 403 /Lame_excuses/not_found.html
>
> Correct me if I'm wrong, but this won't help, since if you look
> at the HTTP response headers, it'll still say HTTP/403 and
> HTTP/404, respectively.
Apache gives a 302 directing the browser to the page, in either case.

> --
> Mikael Olsson, EnterNet Sweden AB, Box 393, S-891 28 ÖRNSKÖLDSVIK
> Phone: +46 (0)660 29 92 00 Direct: +46 (0)660 29 92 05
> Mobile: +46 (0)70 66 77 636 Fax: +46 (0)660 122 50
> WWW: http://www.enternet.se/ E-mail: mikael.olssonenternet.se

--
Thomas Smith <chihuahuatmbg.org>