You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Daniel Barbar <da...@ibarbari.com> on 2002/05/20 03:32:37 UTC
Embperl handling DocumentRoot
Hi,
I am new to mod_perl and Embperl, and am trying to set up a website where the
main page will be handled by Embperl. I have added the following to Apache's
httpd.conf:
<Location />
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Location>
The Perl code seems to be recognized and processed just fine, however, the
tage <IMG SRC="..."> doesn't work. I have verified that the path and access
settings are correct, in fact, if I remove the lines above, the image will
show correctly but, of course, the perl code will not be recognized.
Versions are: HTML-Embperl-1.3.4, apache_1.3.24, mod_perl-1.26 and
perl-5.6.1, on Suse 8.0. Have you seen this before? Any hints? Thanks in
advance,
---
Daniel Barbar
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Embperl handling DocumentRoot
Posted by Gavin Carr <ga...@openfusion.com.au>.
Hi Daniel,
On Sun, May 19, 2002 at 06:32:37PM -0700, Daniel Barbar wrote:
> <Location />
> SetHandler perl-script
> PerlHandler HTML::Embperl
> Options ExecCGI
> </Location>
>
> The Perl code seems to be recognized and processed just fine, however, the
> tage <IMG SRC="..."> doesn't work. I have verified that the path and access
> settings are correct, in fact, if I remove the lines above, the image will
> show correctly but, of course, the perl code will not be recognized.
It's probably just that Embperl is trying to process your image as well
as your main pages. Try adding:
PerlSetEnv EMBPERL_FILESMATCH "\.epl|\.html?$"
or something similar (depending on how your naming your pages, of
course).
Cheers,
Gavin
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org