ErrorDocument 400 ONLY not working

Discussion in 'Apache' started by WhiteHatHacker, Nov 7, 2006.

  1. #1
    Thanks in advance, folks. Basically, the following directives (in httpd.conf) work for all the status codes except 400. Don't know why :confused: .

    <Directory />
        Options FollowSymLinks
        AllowOverride All
        ErrorDocument 400 /_errors/400
        ErrorDocument 401 /_errors/401
        ErrorDocument 403 /_errors/403
        ErrorDocument 404 /_errors/404
        ErrorDocument 500 /_errors/500
    </Directory>
    Code (markup):
    Help! Thanks.

    P.S. The lack of file extension is intentional.
     
    WhiteHatHacker, Nov 7, 2006 IP
  2. WhiteHatHacker

    WhiteHatHacker Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello?! This is really bugging me, even though I know it's unlikely to happen. I just want to know why, regardless of where I put the above directive (okay, I've tried httpd.conf and my .htaccess file),

    htp://localhost/% NB: http is spelled wrong because I cannot yet post live links!

    always returns the same, boring, standard error message. Is Apache's "bad request" response uncustomizable? If so, then how come nobody else seems to have mentioned it?

    Any advice would be welcome.
     
    WhiteHatHacker, Nov 8, 2006 IP