Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 44328 invoked from network); 18 Sep 2009 22:18:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 22:18:15 -0000 Received: (qmail 51278 invoked by uid 500); 18 Sep 2009 22:18:14 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 51263 invoked by uid 500); 18 Sep 2009 22:18:14 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Delivered-To: moderator for modperl@perl.apache.org Received: (qmail 69570 invoked by uid 99); 17 Sep 2009 09:16:27 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Date: Thu, 17 Sep 2009 11:15:56 +0200 Message-Id: <1206744757@web.de> MIME-Version: 1.0 From: Andreas Mock To: modperl@perl.apache.org Subject: ModPerl::Registry and custom error documents Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX1//7TNC13LJ6WLvnYRGSst41HfUZXbRu7/L9hzAIpuSAzd3J dNfZCLmyvBKGT/f378ES5pu+s9YdM6IMO2oUipqfR4BZyb5UaFQHMFhI9wBZ g== Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I searched and googled around for a while but couldn't find a solution for the following question. We're using ModPerl::Registry (PerlOptions +ParseHeaders) in combination with mod_perl to serve our pages in a CGI like environment. This has the advantage for us to have only a very very small layer of integration between the scripts an the special runtime environment. Now we want to serve custom made error documents and thought naively to get it work by just setting the status to the error code and serving a html-page as it works with a normal status 200 page. But this doesn't work. It seams that apache jumps right into the error handling stuff as soon as a status code >= 400 is seen. How can we dynamically create own error documents without using the lower level mod_perl/apache api? Is there a simple way? Best regards Andreas Mock