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

2011-03-14 Thread Torsten Förtsch
On Monday, March 14, 2011 19:14:35 a.sm...@ukgrid.net wrote: > if I have other blocks, will setting as you suggest > override all of them? That would break other parts of the httpd > virtual host on my config... no, Location blocks are evaluated *after* a PerlMapToStorageHandler. You can als

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

2011-03-14 Thread a . smith
Quoting Torsten Förtsch : 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'; Hi, so, if

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

2011-03-14 Thread Torsten Förtsch
On Monday, March 14, 2011 18:45:39 a.sm...@ukgrid.net wrote: > Quoting Torsten Förtsch : > > or instead of the Location block: > > > > PerlMapToStorageHandler "sub {\ > > > > use Apache2::Const -compile=>DECLINED; \ > > use Apache2::RequestRec ();

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

2011-03-14 Thread a . smith
Quoting Torsten Förtsch : or instead of the Location block: PerlMapToStorageHandler "sub {\ use Apache2::Const -compile=>DECLINED; \ use Apache2::RequestRec (); \ use Apache2::RequestUtil ();\ unless( $_[0]->uri eq '/r

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

2011-03-14 Thread Torsten Förtsch
On Monday, March 14, 2011 14:53:35 André Warnier wrote: > > I'd like to have a robots.txt on a site that has the following apache > > > > httpd config: > > > > > > SetHandler perl-script > > PerlHandler RT::Mason > > > > > > > > But if I install a robots.txt to the DocumentRo

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

2011-03-14 Thread Randolf Richardson
> a.sm...@ukgrid.net wrote: > > Hi, > > > > I'd like to have a robots.txt on a site that has the following apache > > httpd config: > > > > > > SetHandler perl-script > > PerlHandler RT::Mason > > > > > > But if I install a robots.txt to the DocumentRoot and test it via wget

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

2011-03-14 Thread André Warnier
a.sm...@ukgrid.net wrote: Hi, I'd like to have a robots.txt on a site that has the following apache httpd config: SetHandler perl-script PerlHandler RT::Mason But if I install a robots.txt to the DocumentRoot and test it via wget I just download the front page of the sit

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

2011-03-14 Thread a . smith
Hi, I'd like to have a robots.txt on a site that has the following apache httpd config: SetHandler perl-script PerlHandler RT::Mason But if I install a robots.txt to the DocumentRoot and test it via wget I just download the front page of the site, as its handled by pe