perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Peters <mpet...@plusthree.com>
Subject Re: Accessing CSS,JS and other files
Date Tue, 15 Apr 2008 22:16:38 GMT
Dileep Eduri wrote:

> When I searched thru' forums, came to know abt the <Files> section, which I
> can use. But still after studying the documentation, I could not write a
> proper <Files> section.

You don't need to use a <Files> section.

> PerlModule ModPerl::Registry
> <Location /perl>
>    SetHandler perl-script
>    PerlHandler ModPerl::Registry
>    Options ExecCGI
>    allow from all
>    PerlSendHeader On
> </Location>

One way is to simply not put the files under /perl :) If you have to do that,
then put them in a different directory. Say /perl/assets? or /perl/css, etc.
Then do something like:

<Location /perl/assets>
  SetHandler default
</Location>

-- 
Michael Peters
Plus Three, LP


Mime
View raw message