Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Re: Accessing CSS,JS and other files

Michael Peters

2008-04-15

Replies: Find Java Web Hosting

Author LoginPost Reply
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

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.