RE: 404s not being handled correctly

2006-01-09 Thread Gerald Richter
> > 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

Re: 404s not being handled correctly

2006-01-08 Thread Michael Smith
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

RE: 404s not being handled correctly

2006-01-06 Thread Gerald Richter
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

Re: 404s not being handled correctly

2006-01-05 Thread Michael Smith
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

RE: 404s not being handled correctly

2006-01-04 Thread Gerald Richter
> > 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