On Monday, March 14, 2011 18:45:39 a.sm...@ukgrid.net wrote:
> Quoting Torsten Förtsch <torsten.foert...@gmx.net>:
> > or instead of the Location block:
> > 
> > PerlMapToStorageHandler "sub {                    \
> >
> >   use Apache2::Const -compile=>DECLINED;          \
> >   use Apache2::RequestRec ();                     \
> >   use Apache2::RequestUtil ();                    \
> >   unless( $_[0]->uri eq '/robots.txt' ) {         \
> >     $_[0]->add_config(['SetHandler perl-script',  \
> >                        'PerlHandler RT::Mason']); \
> >   }                                               \
> >   return Apache2::Const::DECLINED;                \
> >
> > }"
> 
> Thanks Torsten (and all). So in this situation do I put this code in  
> httpd.conf in between the <Location> </Location> lines? Just to check,  
> as you said "instead of the Location block"?

A PerlMapToStorageHandler inside a Location block doesn't make sense.

See
http://perl.apache.org/docs/2.0/user/config/config.html#mod_perl_Directives_Argument_Types_and_Allowed_Location

BTW, it should read

  use Apache2::Const -compile=>'DECLINED';

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Reply via email to