Sorry for wasting everyone's time. There are some days you just
shouldn't get out of bed ...

There was no

  PerlModule Oriel::Embperl2Req

In my apache config.

I don't know why I assumed EmbperlObject would do that for me!

So the following now works:

Content of the handler class
============================
package Oriel::Embperl2Req;
use Embperl;
use strict;
use base qw(Embperl::Req);
sub get_greeting { 'Hello World'; }
1;

The virtualhost config
======================
PerlModule Oriel::Embperl2Req
<VirtualHost *:80>
        ServerAdmin [EMAIL PROTECTED]
        ServerName XXXX.oriel.com.au

        DocumentRoot /var/www/test

        ErrorLog /path/to/log
        CustomLog /path/to/log

        # Now the Emperl directives
        #
        <FilesMatch "\.html$">
                SetHandler perl-script
                PerlHandler Embperl::Object
        </FilesMatch>
        # *.epl files are page building blocks only
        <Files *.epl>
                Order deny,allow
                Deny from all
        </Files>

        EMBPERL_APPNAME         test
        # optReturnError(262144)
        EMBPERL_OPTIONS         262144
        #EMBPERL_DEBUG          0
        # dbgStd(1) + dbgMem(2) + dbgEval(4) + dbgEnv(16) +
        # dbgForm(32) + dbgInput(128) + dbgSession(262144)
        #EMBPERL_DEBUG          2097327
        # dbgParse(0x1000000) + dbgObjectSearch(0x2000000) +
        # dbgFlushLog(0x200) + dbgFlushOutput(0x100)
        EMBPERL_DEBUG           0x3000300
        EMBPERL_LOG                     /tmp/embperl2.log
        # Same as old optRawInput
        EMBPERL_INPUT_ESCMODE   0
        EMBPERL_OBJECT_BASE     base.epl
        EMBPERL_OBJECT_STOPDIR  "/var/www/test"
        EMBPERL_OBJECT_HANDLER_CLASS Oriel::Embperl2Req
        EMBPERL_URIMATCH        "\.(html|epl)$"

        EMBPERL_COOKIE_PATH     /
        EMBPERL_COOKIE_EXPIRES +3M

        EMBPERL_MAIL_ERRORS_TO  "[EMAIL PROTECTED]"

        <Directory /var/www/test>
                Options +ExecCGI
                AllowOverride None
        </Directory>
</VirtualHost>

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

Reply via email to