Verifying Which Handler

2002-08-08 Thread Jeff Crist
Title: Message Can someone send me an example of a test Perl script that will display which Perl handler Apache is using - Apache::Registry or PerlRun. We just migrated our website to a new server that was initially setup to run Appache::Registry but we don't have time to cleanup the code

Re: Verifying Which Handler

2002-08-08 Thread Stas Bekman
Jeff Crist wrote: Can someone send me an example of a test Perl script that will display which Perl handler Apache is using - Apache::Registry or PerlRun. We just migrated our website to a new server that was initially setup to run Appache::Registry but we don't have time to cleanup the

Re: which handler?

2002-06-14 Thread Geoffrey Young
Gabriel C Millerd wrote: On Thu, 13 Jun 2002, Geoffrey Young wrote: sounds like a job for a PerlTransHandler... if ($not_ok) { $r-uri('/not_ok_page.html'); return DECLINED; } this works great until i run into an Alias or a mod_rewite rule it seems. that's odd. the

Re: which handler?

2002-06-14 Thread Gabriel C Millerd
On Fri, 14 Jun 2002, Geoffrey Young wrote: that's odd. the above code essentially acts as though the user entered /not_ok_page.html in their browser all by themselves. maybe I incorrectly assumed that's what you were looking for? well the problem with a onsite url is that the handler

Re: which handler?

2002-06-14 Thread Geoffrey Young
Gabriel C Millerd wrote: On Fri, 14 Jun 2002, Geoffrey Young wrote: that's odd. the above code essentially acts as though the user entered /not_ok_page.html in their browser all by themselves. maybe I incorrectly assumed that's what you were looking for? well the problem with a

which handler?

2002-06-13 Thread Gabriel C Millerd
i want to make a apacher perlhandler method for location / (i think) that will check and see if my system state is ok (like database, jabber, and imap connectivity), and if not will redirect to another page. if everything is kosher i would like everything to move on like normal ... which

Re: which handler?

2002-06-13 Thread Geoffrey Young
on like normal ... which handler method do i use for this. sounds like a job for a PerlTransHandler... if ($not_ok) { $r-uri('/not_ok_page.html'); return DECLINED; } keep in mind that the PerlTransHandler cannot be applied to any Location (or any other container like Directory

Re: which handler?

2002-06-13 Thread Gabriel C Millerd
On Thu, 13 Jun 2002, Geoffrey Young wrote: sounds like a job for a PerlTransHandler... thanks keep in mind that the PerlTransHandler cannot be applied to any Location (or any other container like Directory) so it will automatically apply to an entire (virtual) server. that would have

Re: which handler?

2002-06-13 Thread Gabriel C Millerd
On Thu, 13 Jun 2002, Geoffrey Young wrote: sounds like a job for a PerlTransHandler... if ($not_ok) { $r-uri('/not_ok_page.html'); return DECLINED; } this works great until i run into an Alias or a mod_rewite rule it seems. what is the proper way to indicate success

Re: which Handler to adjust Response-Headers?

2001-04-19 Thread Jochen Schnapka
On Wed, Apr 18, 2001 at 12:09:57PM -0700, Rob Bloodgood wrote: I wonder, which Handler I would have to invoke to mangle or adjust the response headers. I thought, this was the PerlFixupHandler. But $r-headers_out seems to be completly empty. You can do this at any phase of the request

Re: which Handler to adjust Response-Headers?

2001-04-19 Thread Jochen Schnapka
Hi again. Once again, I found the solution by myself. On Wed, Apr 18, 2001 at 05:13:21PM +0200, Jochen Schnapka wrote: Hi. I wonder, which Handler I would have to invoke to mangle or adjust the response headers. I thought, this was the PerlFixupHandler. But $r-headers_out seems

RE: which Handler to adjust Response-Headers?

2001-04-19 Thread Geoffrey Young
-Original Message- From: Jochen Schnapka [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 6:31 AM To: [EMAIL PROTECTED] Subject: Re: which Handler to adjust Response-Headers? Hi again. Once again, I found the solution by myself. On Wed, Apr 18, 2001 at 05:13:21PM

Re: which Handler to adjust Response-Headers?

2001-04-19 Thread Jochen Schnapka
On Thu, Apr 19, 2001 at 08:42:40AM -0400, Geoffrey Young wrote: $r-headers_out seems to be completly empty. I think $r-headers_out will be empty until you do something to put something in it (like $r-headers_out-add(), $r-no_cache(1), or $r-send_http_headers()). Depending on which

RE: which Handler to adjust Response-Headers?

2001-04-19 Thread Geoffrey Young
-Original Message- From: Jochen Schnapka [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 12:52 PM To: [EMAIL PROTECTED] Subject: Re: which Handler to adjust Response-Headers? On Thu, Apr 19, 2001 at 08:42:40AM -0400, Geoffrey Young wrote: $r-headers_out seems

which Handler to adjust Response-Headers?

2001-04-18 Thread Jochen Schnapka
Hi. I wonder, which Handler I would have to invoke to mangle or adjust the response headers. I thought, this was the PerlFixupHandler. But $r-headers_out seems to be completly empty. This is my handler: use strict; use Apache::Constants; use Apache::Table; sub handler { my $r = shift

Re: which handler?!?

2000-04-11 Thread Doug MacEachern
On Wed, 5 Apr 2000, J. Horner wrote: I'm finally writing the web server intrusion system that I've planned for months. I have the skeleton for the URI comparing handler, but I'm a little unclear where it should really go. A handler is written to compare the URI against a source of known