perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@chipcity.com.au
Subject Re: probs compile Embperl-2.0rc5
Date Mon, 26 Sep 2005 02:05:16 GMT
Hi.

I solved this prob.
25Sep2005 @ 14:26 Gerald Richter thusly spake
> > httpd.conf
> > /~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >         NameVirtualHost 10.1.1.3:80
> > 		
> >         <VirtualHost 10.1.1.3:80>
> >                 ServerName www.mydomain.com
> >                 ServerAdmin webmaster@mydomain.com
> >                 DocumentRoot /www/mydomain/com/htdocs
> >                 DirectoryIndex index.html
> >                 ErrorLog /www/mydomain/com/logs/error_log
> >                 TransferLog /www/mydomain/com/logs/access_log
> >                 PerlSetEnv EMBPERL_ESCMODE 0
> 
> Please use "Embperl_Escmode 0" (without PerlSetEnv), same for the other
> Embperl directives

I added the 
'Embperl_Appname whatever'
directive

then it worked :-)

So now I have:
/~~~~~~~~~~~~~~~~~~~~~~~~	
<Directory "/myS/www/html/bla">
	Embperl_Appname foo
	Embperl_Escmode 0
	Embperl_Options 16
	Embperl_Object_Base base.epl
	Embperl_Debug 1
	<FilesMatch ".*\.html">
		SetHandler  perl-script
		PerlHandler Embperl::Object
		Options     ExecCGI
	</FilesMatch>
	<FilesMatch ".*\.epl$">
		Order allow,deny
		Deny From all
	</FilesMatch> 
</Directory>
\________________________

Then when I call an html file I get 
-base.epl:

base.epl contains:
/~~~~~~~~~~~~~~~~~~~
[- use CGI::Pretty ':standard' -]
[+ header +]
[+ start_html('The Title tags content') +]
[- Execute ('embed.epl') -]
[- Execute ('*') -]
[+ end_html +]
\__________________

This feels pretty good :-).

Kind regards.
Luke.

-- 
............._..
.|  .| |.|/.|_ .
.|__.|_|.|\.|_ .
:61 421 276 282:

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


Mime
View raw message