httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Houston <...@openstrike.co.uk>
Subject Re: [users@httpd] apache changes status code from 500 to 200
Date Wed, 11 Jul 2012 13:50:40 GMT
On Wed, Jul 11, 2012 at 03:21:12PM +0200, Ruud Dozijn wrote:
> 
> I have put this in my httpd.conf:
> 
> <Location /cgi>
>     SetHandler  perl-script
>     PerlHandler ModPerl::Registry
>     Options ExecCGI
>     ErrorDocument 400 /handlers/400.h
> </Location>
> 
> <Location /handlers>
>     SetHandler send-as-is
> </Location>
> 
> 
> What I would really like to obtain is that the output of my cgi script (being a complete
html document including headers) is not handled by any error handler. 

Firstly, it turns out that it isn't a CGI script but rather a mod_perl2
registry script - different beast entirely. And given that, I'm
surprised that you aren't using

	PerlOptions +ParseHeaders

as suggested in the docs at
http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Registry_Scripts
Perhaps that will provide the functionality which you require.

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Mime
View raw message