Re: robots.txt with httpd and root level SetHandler perl-script

[email protected]
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Quoting Torsten Förtsch <[email protected]>:

> 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"?

thanks Andy.
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.