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


in reply to Re^2: Different context
in thread mod_perl give 404 not_found with content

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.

Replies are listed 'Best First'.
Re^4: Different context
by Jaap (Curate) on Apr 07, 2011 at 21:39 UTC
    Ah thanks so apache prints the content and then appends its own 404 document to it.
    Must be an apache config thing then.

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

      Huh? You didn't say this was the problem :/

      If you want to avoid ErrorDocument getting appended, see http://search.cpan.org/~gozer/mod_perl-1.31/faq/mod_perl_faq.pod#So_how_do_I_use_mod_perl_in_conjunction_with_ErrorDocument%3F