Re: Question about Files directive

2005-03-02 Thread Carl Johnstone
> Chuck, use Apache::Reload and you won't have to restart the server. > http://modperlbook.org/html/ch06_08.html Although on a production server that's dealing with many thousands of requests, that could be an awful lot of checks to see if modules have been updated. Personally I prefer a bit of s

RE: Question about Files directive

2005-03-02 Thread Goehring, Chuck, RCI - San Diego
about Files directive Goehring, Chuck, RCI - San Diego wrote: > > Well, when I use cgis that run under Registry, if I modify a pm file, > I have to restart the web server before I see changes. Chuck, use Apache::Reloa

Re: Question about Files directive

2005-03-02 Thread Stas Bekman
Goehring, Chuck, RCI - San Diego wrote: Well, when I use cgis that run under Registry, if I modify a pm file, I have to restart the web server before I see changes. Chuck, use Apache::Reload and you won't have to restart the server. http://modperlbook.org/html/ch06_08.html -- __

Re: Question about Files directive

2005-03-02 Thread Carl Johnstone
CCing it back onto the list... > Now if I do not want all to specify all cgi scripts (*.cgi) to be handled by the handler precisely to avoid pitfalls and only specify some files to be used, then how do I do that via the Files directive. < There's a couple of different approaches. The fir

Re: Question about Files directive

2005-03-02 Thread Carl Johnstone
Hi, To explain exactly what is going on... The "Files" directive is an *apache* not mod_perl directive. You can use it within apache to define specific rules for a file (or bunch of files). The "SetHandler" directive is also an apache directive, that tells apache what hander should be used. So

RE: Question about Files directive

2005-03-02 Thread Perrin Harkins
On Wed, 2005-03-02 at 08:36 -0800, Goehring, Chuck, RCI - San Diego wrote: > If I modify the top level cgi, I don't have to restart the web server. > This tells me the modules are parsed only the first time and the top > level cgi is parsed every time it runs. So, for my setup, using > mod_perl do

RE: Question about Files directive

2005-03-02 Thread Goehring, Chuck, RCI - San Diego
, RCI - San Diego Cc: modperl@perl.apache.org Subject: RE: Question about Files directive On Wed, 2005-03-02 at 08:16 -0800, Goehring, Chuck, RCI - San Diego wrote: > An ordinary cgi script would be parsed every time regardles

RE: Question about Files directive

2005-03-02 Thread Perrin Harkins
On Wed, 2005-03-02 at 08:16 -0800, Goehring, Chuck, RCI - San Diego wrote: > An ordinary cgi script would be parsed every time regardless of the > container used to specify the handler. Not to gang up on you, Chuck, but the question was about running things under Apache::Registry, so the script wo

RE: Question about Files directive

2005-03-02 Thread Perrin Harkins
On Wed, 2005-03-02 at 08:51 -0600, Jain, Abhay K, ALABS wrote: > > SetHandler perl-script > PerlHandler Apache::Registry > Options ExecCGI > If you change hello.cgi to *.cgi, then all files ending in .cgi will be run through Apache::Registry. Is that what you were looking

RE: Question about Files directive

2005-03-02 Thread Goehring, Chuck, RCI - San Diego
. Chuck -Original Message- From: Tom Schindl [mailto:[EMAIL PROTECTED] Sent: Wed 3/2/2005 7:51 AM To: Goehring, Chuck, RCI - San Diego Cc: Jain, Abhay K, ALABS; modperl@perl.apache.org Subject: Re: Question about Files directive Goehring, Chuck, RCI - San Diego wrote

Re: Question about Files directive

2005-03-02 Thread Tom Schindl
Goehring, Chuck, RCI - San Diego wrote: Jain, If you are using mod_perl (Registry) and the bulk of the code can be moved to module files, minimizing of parsing is automatic. When the code is in modules, only the "top level" script that creates & uses the objects gets compiled each time - the ".p

RE: Question about Files directive

2005-03-02 Thread Goehring, Chuck, RCI - San Diego
mean security. Chuck -Original Message- From: Jain, Abhay K, ALABS [mailto:[EMAIL PROTECTED] Sent: Wed 3/2/2005 6:37 AM To: modperl@perl.apache.org Cc: Subject: Question about Files directive I just compiled mod_p

Re: Question about Files directive

2005-03-02 Thread Markus Wichitill
Jain, Abhay K, ALABS wrote: > I just compiled mod_perl 1.29 with apache. As I understand from > the documentation that with use of directive "Files", Apache caches the > perl cgi code so that on next invocation it does not to reparse it. > If I want to specify more than one cgi script to be cached,

RE: Question about Files directive

2005-03-02 Thread Jain, Abhay K, ALABS
-Original Message- From: Sean Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 9:43 AM To: Jain, Abhay K, ALABS Cc: modperl@perl.apache.org Subject: Re: Question about Files directive On Mar 2, 2005, at 9:37 AM, Jain, Abhay K, ALABS wrote: > I just compiled mod_p

Re: Question about Files directive

2005-03-02 Thread Sean Davis
On Mar 2, 2005, at 9:37 AM, Jain, Abhay K, ALABS wrote: I just compiled mod_perl 1.29 with apache. As I understand from the documentation that with use of directive "Files", Apache caches the perl cgi code so that on next invocation it does not to reparse it. If I want to specify more than one cgi

Question about Files directive

2005-03-02 Thread Jain, Abhay K, ALABS
I just compiled mod_perl 1.29 with apache. As I understand from the documentation that with use of directive "Files", Apache caches the perl cgi code so that on next invocation it does not to reparse it. If I want to specify more than one cgi script to be cached, how do I specify via Files directiv