Thanks Stas,

That is my problem,
subdirectoy is ok now
but in directory index problem persist
exists for example:

   # Modulo home default
   $Location{"/"} = {
       SetHandler  => "modperl",
       PerlHandler => "eShop::Web::Shop::home",
       PerlOptions => "+SetupEnv",
   };

>        $Location{"/*"} = { # or != "/"
>            SetHandler  => "default-handler",
>        };

because i have /file.js and /file.css
or i need change all files to one directory in default handler?

thanks

Stas Bekman wrote:

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:


http://perl.apache.org/docs/1.0/guide/config.html#Overriding_E_lt_LocationE_gt__Setting_in__Sub_Location_


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
http://perl.apache.org/docs/2.0/api/Apache/PerlSections.html
with examples on how to keep things in the order? Thanks!




--
Udlei Nattis
Gerente de desenvolvimento
-----------------------------
www.linuxmall.com.br
+55 11 5087-9441



-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to