[mod_python] Re: little problem with my handler

Julien Cigar jcigar at ulb.ac.be
Wed Mar 29 02:23:39 EST 2006


The problem was that I used relative urls : "../css/screen.css", ... and 
that I didn't handle this in my handler ..
Is there a "good" way to do that easily ?

thanks

Graham Dumpleton wrote:
> There are possibly a few things in your handler which are questionable,
> but I'll get to that in a seperate email. As to the "Files" directive, please
> believe what people are telling you, the syntax you are using is plain
> wrong for the "Files" directive. To make it obvious, use the Deny
> directive so you get an obvious forbidden message back and try in
> turn:
>
>   <Files "*.css">
>   Deny from all
>   </Files>
>
>   <FilesMatch "\.(gif|jpe?g|png|css|html?)$">
>   Deny from all
>   </FilesMatch>
>
>   <Files ~ "\.(gif|jpe?g|png|css|html?)$">
>   Deny from all
>   </Files>
>
>   <Files "\.(gif|jpe?g|png|css|html?)$">
>   Deny from all
>   </Files>
>
> You will find that all will work to block access to the file except
> what you were using.
>
> Graham
>
> Julien Cigar wrote ..
>   
>> Same with <FilesMatch> ...
>> I think the problem comes from my handler itself .. it's my first one :)
>>
>>
>> Amand Tihon wrote:
>>     
>>> Le Mardi 28 Mars 2006 15:19, Julien Cigar a écrit :
>>>   
>>>       
>>>>     <Files "\.(gif|jpe?g|png|css|html?)$">
>>>>         SetHandler None
>>>>     </Files>
>>>>     
>>>>         
>>> I think you want a <FilesMatch ...> directive here, instead of a <Files
>>>       
>> ...>
>>     
>>> The other solution is to use <Files ~ regexp> but FilesMatch is recommended
>>>       
>> in 
>>     
>>> apache's documentation.
>>>
>>> I hope this helps.
>>>
>>>   
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Mod_python mailing list
>>> Mod_python at modpython.org
>>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>>   
>>>       
>> -- 
>> Julien Cigar
>> Belgian Biodiversity Platform
>> http://www.biodiversity.be
>> Université Libre de Bruxelles
>> Campus de la Plaine CP 257
>> Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
>> Boulevard du Triomphe, entrée ULB 2
>> B-1050 Bruxelles
>> Work: jcigar at ulb.ac.be
>> Personal: mage at mordor.ath.cx
>>
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>     


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Work: jcigar at ulb.ac.be
Personal: mage at mordor.ath.cx



More information about the Mod_python mailing list