perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew O'Brien" <andr...@oriel.com.au>
Subject RE: Problems with EMBPERL_OBJECT_HANDLER_CLASS on stock debian etch Embperl 2.2.0 / Apache 2.2.3
Date Wed, 11 Jul 2007 05:16:44 GMT

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 andrewo@oriel.com.au
	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	"andrewo@oriel.com.au"

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

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message