> I have EMBPERL_OBJECT_BASE set to base.html, which in turn does Execute
> (*). The documentation says that if the specified file is not found and
> EMBPERL_OBJECT_FALLBACK is not defined, then a 404 is returned as
> normal. However I just get an "internal server error" message, not a
> 404. I set ErrorDocument 404 in httpd.conf, which would normally catch
> any 404 (and actually does, if a filetype other than that handled by
> Embperl is requested), but this situation appears to mean that a 404 is
> never generated, so the httpd setting never kicks in.
>
Mmm, strange, does it change anything if you replace the
return &NOT_FOUND ;
with
return 404 ;
in line 289 of EmbperlObject.pm ?
> I can set EMBPERL_OBJECT_FALLBACK and catch the error, but this appears
> to have its own problem: If I set EMBPERL_OBJECT_FALLBACK to be
> subdir/notfound.html, then notfound.html should (I think) be executed
> like other files which are normally included by base.html. However, this
> doesn't appear to happen. For example, base.html does
> Execute('init.html'). I redefine init.html in most subdirectories.
> However when a non-existent document is requested and
> EMBPERL_OBJECT_FALLBACK kicks in, and we are redirected to
> subdir/notfound.html, then subdir/init.html is not executed.
>
I would gues init.html (is executed, without subdir/).
If you define notfound.html as EMBPERL_OBJECT_FALLBACK then it would be
taken from the same directories as the normal file, i.e. walking up the
directory tree until the dir where base.html lives, but when you specify
subdir/notfound.html, subdir will _not_ included in this search. I think
that's what you are seeing at the moment. That's not a bug, it's by design.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]