perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Stepanov <michaelstepa...@francoudi.com>
Subject Re: Embperl::Object configure problems
Date Tue, 11 Jan 2005 13:00:00 GMT
Gerald Richter wrote:

>
>For every virtual host define a different name with
>
>Embperl_Appname
>  
>
Thanks, I understand that. But I don't understand whole picture.
Let's see configuration of Embperl:
1) load mo_perl.so;
2) load Embperl.so;
3) Add new file type - text/html - *.epl;
4) load Embperl.pm;
3) specify handler for *.epl.

perl.conf
------------------------
LoadModule perl_module modules/mod_perl.so
LoadModule embperl_module 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Embperl/Embperl.so
AddType text/html .epl
PerlModule Embperl
<FilesMatch ".*\.epl|.*\.html$">
SetHandler perl-script
PerlHandler Embperl
Options ExecCGI
</FilesMatch>
------------------------
All those definitions I've put into conf.d/perl.conf

Well, than I've tried to configure Embperl::Object:

perl.conf
--------------------------
LoadModule perl_module modules/mod_perl.so
LoadModule embperl_module 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Embperl/Embperl.so

EMBPERL_DEBUG 33825832
EMBPERL_LOG /tmp/embperl.log
EMBPERL_OBJECT_BASE base.html

AddType text/html .epl

PerlModule Embperl

<FilesMatch ".*\.epl|.*\.htm?$">
SetHandler perl-script
PerlHandler Embperl::Object
Options ExecCGI
</FilesMatch>
--------------------------

http.conf
------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/test/html
DirectoryIndex index.html
ServerName test.misha.dom
ErrorLog logs/test-error_log
CustomLog logs/test-access_log common

<Location "/var/www/test/html">
EMBPERL_APPNAME test
EMBPERL_OBJECT_BASE base.html
EMBPERL_URIMATCH "\.htm.?│\.epl$"
SetHandler perl-script
PerlHandler Embperl::Object
Options ExecCGI
</Location>
</VirtualHost>
------------------------------------

And in this case Embperl doesn't work at all. A browser displays
source of page.

Any suggestions?

-- 
Best regards, 
Michael Stepanov
Perl/Linux Developer


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


Mime
View raw message