>
> So, my question (which hopefully Gerald will see)
I see (and answer, as far as other didn't done it already) all the questions
on the list, but I not always have time to immediatly answer them...
> is WHY Embperl works
> perfectly for serving base.epl, notfound.html, and explicitly requested
> files [- Execute ('filename.html') -] out of /htdocs for the domain
> /htdocs/mybookprices, but can't seem to serve up boilerplate.html when
> requested by [- Execute ('*') - ].
>
Embperl::Object only searches for files that doesn't have a path e.g. it
searches for content.html, but not for /usr/local/apache/htdocs/content.html
. The file you requested is passed by Apache with the full path to Embperl,
that's the reason why Embperl did not search for it. This normaly makes
sense, since you want to show the user the document he requested.
In your case it's different. To make it working you have to strip the path.
The easiest way to do that is to create an application object. E.g.
app.pl
use File::Basename ;
sub init
{
my ($self, $r) = @_ ;
$r -> param -> filename (basename ($r -> param -> filename)) ;
return 0 ;
}
In your httpd.conf say
EMBPERL_OBJECT_APP app.pl
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 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]