On Wed, Apr 12, 2006 at 09:06:25PM -0400, Lars Kelto wrote:
>
> Hey Embperlers. I know this has been discussed
before, but I'm just now
> getting a serious project going with Embperl2 and
objects, and haven't
> found an answer in the archive.
>
> How do I get the root of my main or virtual site to
properly load the
> directory index file as an Embperl object? Every
config I've tried
> results in being able to load the file directly
(/index.html) but returns
> a Not Found for the root of the site (/). Relevant
parts of my most
> recent config are below (the rest is FC4 httpd
defaults).
>
>
> LoadModule embperl_module
>
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/
Embperl/Embperl.so
> PerlModule Embperl
> AddType text/html .epl
>
> <VirtualHost *:80>
> ServerName www.rg.net
> ServerAdmin earwig taar.com
> DocumentRoot /var/www/rg
> DirectoryIndex index.html
> ErrorLog logs/rg-error_log
> TransferLog logs/rg-access_log
> Embperl_AppName rg
> Embperl_Object_Base base.epl
> Embperl_UriMatch
"\.html.?|\.epl$"
> SetHandler perl-script
> PerlHandler Embperl::Object
> </VirtualHost>
I haven't had problems with Embperl2 and objects, but I
notice a
significant difference between my config and yours. Instead
of
SetHandler perl-script
PerlHandler Embperl::Object
I have it inside Directory and FilesMatch directives.
<Directory "/var/www/rg">
# Embperl handles HTML files
<FilesMatch ".*\.htm.?$">
SetHandler perl-script
PerlHandler Embperl::Object
Options ExecCGI
</FilesMatch>
# disable direct serving of .epl files
<FilesMatch ".*\.epl$">
Order allow,deny
Deny From all
</FilesMatch>
</Directory>
Maybe that will help.
Kathryn Andersen
-=-=-=-=-=-=-=-=-
[House referred to Chase as British]
Dr. Robert Chase: I'm Australian!
Dr. Gregory House: You put the Queen on your money. You're
British.
(House M.D.)
--
_--_|\ | Kathryn Andersen <http://www.katspace.com&g
t;
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.
katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia ->
Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy
-> Universe
------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribe perl.apache.org
For additional commands, e-mail: embperl-help perl.apache.org
|