Re: any trick to exclude some files in FilesMatche
Hi there, On Mon, 9 Jul 2001, Surat Singh Bhati wrote: [snip] But all the .pl , including fast_(.*).pl are run by Apache::PerlRun handler [snip] Any solution to exclude the fast_(.*).pl in second expression? Rename the files? 73, Ged.
Re: any trick to exclude some files in FilesMatche
On Mon, 9 Jul 2001, Surat Singh Bhati wrote: But all the .pl , including fast_(.*).pl are run by Apache::PerlRun handler Any solution to exclude the fast_(.*).pl in second expression? Set the PerlRun handler as the default in httpd.conf, and write your own translation handler: package Apache::DistinguishBetweenPerlRunAndFastCGI; use Apache::Constants qw(OK DECLINED); sub handler { my $r = shift; return DECLINED unless ($r-uri =~ /\.pl$/); $r-hander(whatever-handler) if ($r-uri =~ /fast_(.*)\.pl$/); return OK; } Season to taste (especially real a handler name). (darren) -- I believe in God, only I spell it Nature. -- Frank Lloyd Wright
any trick to exclude some files in FilesMatche
Hi, I want to configure the Apache for Apache::PerlRun as: FilesMatch \^fast_*\.pl$ SetHandler fastcgi-script Options +ExecCGI /FilesMatch FilesMatch (cgi|pl)$ SetHandler perl-script PerlHandler Apache::PerlRun PerlSendHeader On Options +ExecCGI /FilesMatch But all the .pl , including fast_(.*).pl are run by Apache::PerlRun handler, I tryed by changing the order, any trick to make it working. I cannot get help of the Location or directory as all files are in the same dir. Any solution to exclude the fast_(.*).pl in second expression? Regards, -Surat Singh