[cgiapp] getting C::A::Dispatch to ignore certain URLs

P Kishor punkish at eidesis.org
Sun Jan 25 08:28:42 EST 2009


On 1/25/09, Bradley C Bailey <cgiapp at brad.memoryleak.org> wrote:
> You didn't say what environment you're using.

My apologies... I am using plain vanilla CGI on Mac OS X with Perl 5.10.


>
>  If you're using Apache/mod_perl you can add this to your configuration:
>
>  <Location /img>
>   SetHandler default
>  </Location>
>
>  Regards,
>  Bradley C Bailey
>
>
>
> > The way I have set up my application, the following 3 URLs all result
> > in displaying "Target," that is, the 'view' runmode
> >
> >  <server>/
> >  <server>/Target
> >  <server>/view/Target
> >
> > I have other runmodes that are like so
> >
> >  <server>/edit/Target
> >  <server>create/New_Target
> >
> > and so on.
> >
> > Here is the problem... if a page has a link to a resource that has to
> > be displayed directly in the browser, for example, a PDF,
> > C::A::Dispatch wants to handle it as well. For example, the following
> > URL
> >
> >  <server>/img/doc.pdf
> >
> > results in an error. How can I make C::A::Dispatch ignore URLs that
> > point to anything in the <server>/img/ directory?
> >
> >
>
>
>


More information about the cgiapp mailing list