This is .htaccess that works perfectly well for me:
=====================================================
PerlSetEnv EMBPERL_OPTIONS 8208
PerlSetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_DEBUG 1
<FilesMatch ".*\.html$">
PerlSetEnv EMBPERL_FILESMATCH "\.html$"
PerlSetEnv EMBPERL_OBJECT_BASE base.html
SetHandler perl-script
PerlHandler HTML::EmbperlObject
Options ExecCGI
</FilesMatch>
=====================================================
I use HTML::Embperl with .htaccess quite often and works
fine - I just seem to recall I had problems when I used
both SetVar and PerlSetVar, so now I just use PerlSetVar
everywhere.
P.S. For performance reason you might want to put stuff into
<VirtualHost> section instead of .htaccess - it works the same way
but it's faster. If your admin will allow it.
- Robert
marcus wrote:
>
> Hi,
>
> I would like to use EmbPerlObjects. I'm using a virtual host, so I
> can't change the general Apache config because that would mess up the
> current "master plan" for all virtual hosts, says the server
> administrator.
>
> As an alternative to the <Location> directive in the Docs. He said
> possibly: "You may be able to do something similar, using a
> <FILESMatch> directive in
> a .htaccess file.
> http://www.apache.org/docs/mod/core.html#filesmatch
>
> <FilesMatch "\.(epl|htm?)$">
> PerlSetEnv EMBPERL_OBJECT_BASE base.htm
> PerlSetEnv EMBPERL_FILESMATCH "\.htm.?|\.epl$"
> SetHandler perl-script
> PerlHandler HTML::EmbperlObject
> Options ExecCGI
> </FilesMatch>"
>
> I don't know much about configuring .htaccess and don't want to mess it
> up. Has anybody else solved this one?
>
> Thanks,
>
> Marcus Friedlaender
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]