http://www.perlmonks.org?node_id=898104


in reply to Different context
in thread mod_perl give 404 not_found with content

Full blown browsers tend to replace 404 responses with their own, especially if the responses are small. Are you sure that the problem in on the server side?

Replies are listed 'Best First'.
Re^2: Different context
by Jaap (Curate) on Apr 07, 2011 at 20:03 UTC

      Definitely server side, but hey, got some more information to help you debug:

      $ GET -S http://tis.spaghetticoder.org/test/e34/M5_%28S38%29_SAL/Brake +s/Brake_lines/ GET http://tis.spaghetticoder.org/test/e34/M5_%28S38%29_SAL/Brakes/Bra +ke_lines/ --> 200 OK <html> <head><title>handler</title></head> <body> Hello from ME.<br /> </body> </html> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>200 OK</title> </head><body> <h1>OK</h1> <p>The requested URL /s/friendlyNew.pl was not found on this server.</ +p> </body></html>

      Note that the server returned a 200 status with two responses merged into one.

        Ah thanks so apache prints the content and then appends its own 404 document to it.
        Must be an apache config thing then.