[Catalyst] How to decline file from extension
Jean-Michel Caricand
jean-michel.caricand at laposte.net
Thu Dec 21 17:58:28 GMT 2006
OK.
With Apache I can write in httpd.conf :
<FilesMatch "(\.mas|handler)$">
SetHandler perl-script
PerlModule Apache::Constants
PerlHandler "sub { return Apache::Constants::NOT_FOUND }"
</FilesMatch>
Now, when I ask for the URL http://localhost/my_component.mas
Apache sends an error "NOT FOUND".
I just want to simulate this behavior in Catalyst without Apache.
Thanks
> On Thu, Dec 21, 2006 at 10:24:20AM -0600, Jonathan Rockway
wrote:
> > I read this and assumed he wanted to know how to prevent
Static::Simple
> > from serving something. That case is well-documented, so
I suggest that
> > he take a look at the Static::Simple documentation.
>
> Just goes to show what a badly written question leads to ...
>
> --
> Chisel Wright
> e: chisel at herlpacker.co.uk
> w: http://www.herlpacker.co.uk/
>
> What do we want? Less premature ejaculation!
> When do we want it? ... aaw heck
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
Jean-Michel Caricand
mail : jean-michel.caricand at laposte.net
Accédez au courrier électronique de La Poste
sur www.laposte.net ou sur 3615 LAPOSTENET (0,34 TTC /mn)
1 Giga de stockage gratuit Antispam et antivirus intégrés
More information about the Catalyst
mailing list