>
> > > without a "PerlSetEnv EMBPERL_OBJECT_STOPDIR /" directive im getting
> > > 'not found' errors for each element in base.htm - if calling a page in
a
> > > subdir - that is not located in the subdir but in documentroot.
> > >
> >
> > Could you give an example what do you mean by "if calling a page in a
> > subdir - that is not located in the subdir but in documentroot" ?
>
> i can't reproduce the problem with some simple files (like below)- i have
to track
> this problem down by myself i guess ;)
>

Sorry, I didn't thought about this right the first time. It's the intended
behaviour of EmbperlObject.

http://perl.apache.org/embperl/EmbperlObject.pod.1.html#DESCRIPTION says:

"This frame page can now include other pages, using the
HTML::Embperl::Execute method. Because the search path is set by
EmbperlObject the included files are searched in the directories starting at
the directory of the original request walking up thru the directory which
contains the base page. This means that you can have common files, like
header, footer etc. in the base directory and override them as necessary in
the subdirectory. "

For your example below this means, if base.htm resides in /foo EmbperlObject
only searches in /foo, if you want it to search in /foo and / you have to
set EMBPERL_OBJECT_STOPDIR to the same directory as the DocumentRoot. (If
you request /foo/index.htm and you have _no_ /foo/base.htm, then
EmbperlObject would have searched /foo/head.htm and /head.htm, without
setting EMBPERL_OBJECT_STOPDIR)

I hope it's more clear now

Gerald


> simpyfied i have:
> / base.htm
>   head.htm
>   foot.htm
>   index.htm
>
> /foo base.htm
>      index.htm
>
> foo/base.htm looks like
> <html>
> <head>
> <title>Example base foo</title>
> </head>
> <body>
> [- Execute ('head.htm') -]
> [- Execute ('*') -]
> [- Execute ('foot.htm') -]
> </body>
> </html>
>
> calling foo/index.htm gives me then something like:
>         Internal Server Error
>         The server encountered an internal error or misconfiguration
>         and was unable to complete your request.
>
>         Please contact ... bla bla
>
>         [4802]ERR: 30: Line 6: Not found head.htm
>         [4802]ERR: 30: Line 8: Not found foot.htm
>
> > > i also get an "Not Found - The requested URL /embperl/log was not
found
> > > on this server" when i try one of the 'dbgLogLink's
> > >
> >

-------------------------------------------------------------
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 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to