perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: [mp2] default handler
Date Mon, 03 May 2004 19:52:19 GMT
Udlei Nattis wrote:
> Hi,
> I have problem to set default handler when enter in my website
> httpd.conf:
>        $Location{"/"} = {
>            SetHandler  => "perl-script",
>            PerlHandler => "eShop::Web::Shop::home",
>            PerlOptions => "+SetupEnv",
>        };
> but when i access /image.gif, apache open module Shop::home
> exist one solution for dont use module when i open another file
> or for exemplo i rename location for /default and apache
> load this modulos when i set DirectoryIndex
> i look for one ModuleIndex...
> thanks all and sorry my english

Let's see whether I understood you correctly. You want to have 
Shop::Web::Shop::home to handle everything but a few other resources, for 
which you want to run the default handler (like images).
In which case, take a look at:

Since you use <Perl> sections, you need to ensure that things are kept in the 
correct order, so / won't override other setting. So you will probably need to 
use Tie::IxHash...

Philippe, could you please update
with examples on how to keep things in the order? Thanks!

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

Report problems:
Mail list info:
List etiquette:

View raw message