The segfault of the perl-status seems to be a bug in Embperl (I will check this later on), but I don't expect that it has something to do with getting no content.
OK, thanks.
I would try
A) use Embperl configuration directives directly (without setenv and perlsetenv)
I tried this, but it didn't help. (See below)
B) try plain Embperl e.g. PerlHandler Embperl instead of Embperl::Object
That does work, I get output. Of course, it's not the right output, because it's not using the wrapper I need it to use.
I think I figured out part of the reason for the problem, though. It looks like my EMBPERL_OBJECT_BASE is being ignored. I did an strace on httpd, and found that it was trying to access "_base.epl", even though I'm telling it to use "hello.epl" as the base:
stat64("/world/https/lottery/_base.epl", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
It turns out I had a zero-length "_base.epl" in there that it was using (which is why I got an empty page). So I removed it and did a:
ln -s hello.epl _base.epl
and now I get my "Hello World", as expected.
But that still doesn't explain why EMBPERL_OBJECT_BASE is being ignored. And the DirectoryIndex directive is too, since it doesn't try to access /lottery/index.epl when I request just /lottery/. (I checked this with strace, also). In the Apache error log, I get:
Attempt to serve directory: [path to requested folder]
Here's my new config:
AddType text/html .epl
LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.6/i686-linux/auto/Embperl/Embperl.so
PerlModule Embperl
EMBPERL_APPNAME lottery
EMBPERL_SESSION_HANDLER_CLASS no
<Files *.epl> SetHandler perl-script PerlHandler Embperl::Object Options ExecCGI </Files>
<Location /lottery> DirectoryIndex index.epl index.html index.shtml default.html blocked.html EMBPERL_OBJECT_BASE hello.epl EMBPERL_URIMATCH "\.epl$" SetHandler perl-script PerlHandler Embperl::Object Options ExecCGI </Location>
-- Dan Wilga [EMAIL PROTECTED] Web Administrator http://www.mtholyoke.edu Mount Holyoke College Tel: 413-538-3027 South Hadley, MA 01075 "Who left the cake out in the rain?"
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]