Re: Font Problem

André Warnier <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
André Warnier wrote:
> Michel Jansen wrote:
>> Hi There,
>>
>> I have a probem using webfonts in Firefox. It won't let me use 
>> webfonts from another url than the original. Since i am working with a 
>> perlhandler that "catches" all requests from / and up, i would like to 
>> know of someone knows how i can bypass my handler for a specific 
>> directory above / like for example /fonts/. It would be nice if the 
>> handler can be told to handle all requests bot not for /fonts/ and 
>> pass this request to apache....
>>
> Have you tried returning Apache2::Const::DECLINED from your handler if 
> the URL is "/fonts/*" ?
> 
> See here :
> http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlResponseHandler
> (and check RUN_FIRST)
> 
> As far as I understand, if your handler returns DECLINED, and there are 
> no more explicit handlers defined, then Apache should serve the request 
> with it's default handler, which should be what you want.
> 

Another solution which you might try, without modifying your handler :

1) read these :

http://httpd.apache.org/docs/2.2/mod/core.html#sethandler
http://httpd.apache.org/docs/2.2/mod/core.html#location

2) configure as follows :

<Location />
   SetHandler mod_perl
   PerlResponseHandler my_module
   ...
</Location>

<Location /fonts/>
   SetHandler none
</Location>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.