Glenn E. Bailey III wrote:
Hello,

While I am not new to Perl, I am completely new to mod_perl.

check out the resources at http://perl.apache.org/ - there's lots of good information there :)


sub handler {
      my $r = shift;
      return OK;
  }
1;

And not matter what I always get a 404 with the following in the log:

[Tue Jul 29 03:27:27 2003] [error] [client 10.0.0.1] File does not exist: /

the translation phase is there to map the URI to a filename. by returning OK, you're telling Apache that you've done the translation (that is, you have set $r->filename to something useful). since you didn't set $r->filename, apache is returning 404, since it can't serve the value of $r->filename.


so, the general rule for PerlTransHandlers is to return DECLINED unless you set $r->filename.

chapter 12 in the mod_perl Developer's Cookbook deals specifically with the PerlTransHandler and is as good a place to start learning as any.

HTH

--Geoff



Reply via email to