Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

ErrorDocument from a registry script

Michael Peters

2009-05-07

Replies: Find Java Web Hosting

Author LoginPost Reply
I'm pretty sure this should just work and I'm doing something stupid, so any
helpful insults that point me in the right direction would be appreciated :)

I have a registry script that could return a NOT FOUND (404) error. I'm handling
that like so:

 Apache->request->status(NOT_FOUND);

The browser does get the 404 HTTP status header, but it does not trigger the
ErrorDocument 404 that is set up, instead just showing the browser's built-in
404 message. PerlSendHeaders is Off and I'm not printing any output.

So what am I missing?

--
Michael Peters
Plus Three, LP

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.