>
> Is there a way that the script invoked by ErrorDocument 500
> can determine that is was really a 404 error?
>
The list of errors is stored in a pnote (See
http://perl.apache.org/embperl/pod/doc/Embperl.-page-13-.htm). You can get
it from there and check if there is only one 404 in the list
At the moment in Embperl all error are handled the same and gives a 500error. I have to handle the not found case special to return the 404 error,
which of course makese sense. I will take a look at it during the next days.Thanks Gerald,Is there a way that the script invoked by ErrorDocument 500 ca
Hi,
>
> The tests all pass
>
> When I have optReturnError not set (EMBPERL_OPTIONS=0) and no
> ErrorDocument directive I see the 'internal server error' I
> sent before.
>
> When I have optReturnError (EMBPERL_OPTIONS = 262144) and
> ErrorDocument set then I see the page for ErrorDocument 50
Hi Gerald,The tests all passWhen I have optReturnError not set (EMBPERL_OPTIONS=0) and no ErrorDocument directive I see the 'internal server error' I sent before.When I have optReturnError (EMBPERL_OPTIONS = 262144) and ErrorDocument set then I see the page for ErrorDocument 500 directive rather th
>
> In this case I don't have EMBPERL_OPTIONS set, but my
> intention is to set this and see a custom 404 error page.
> However I get my custom 500 error page instead.
>
> Is this a problem with Embperl or a problem with me?
>
You need to set optReturnError, and add an ErrorDocument directi