Re: is mpm_event safe for modperl handler? [EXT]

2022-08-10 Thread pengyh
thanks for letting me know this. James Smith wrote: mpm_event like all Apache mpm_s is much better at handling "issues" where nginx just goes F* and returns nothing. When we have issues we can detect them on apache mpms - but we often fail to see nginx errors as it sort of just dies!

RE: is mpm_event safe for modperl handler? [EXT]

2022-08-10 Thread James Smith
rors as it sort of just dies! -Original Message- From: pengyh Sent: 09 August 2022 13:04 To: James Smith ; modperl@perl.apache.org Subject: Re: is mpm_event safe for modperl handler? [EXT] I think running Ignix as front-end server and mod_perl for backend server is the more popular choi

Re: is mpm_event safe for modperl handler? [EXT]

2022-08-09 Thread pengyh
I think running Ignix as front-end server and mod_perl for backend server is the more popular choice. If you want the speed of mod_event for static content and the power of mod_perl for dynamic content - the best way is to run a lightweight mod_event apache in front of a mod_prefork to run

RE: is mpm_event safe for modperl handler? [EXT]

2022-08-09 Thread James Smith
f like SSL etc is handled on the mod_event instance keeping the mod_worker instance clean.. It also allows you to run two apaches on a single box - a "test" and a "live" -Original Message- From: pengyh Sent: 05 August 2022 02:21 To: modperl@perl.apache.org Subject: Re:

Re: is mpm_event safe for modperl handler?

2022-08-04 Thread pengyh
thanks. that does sound sorry. No and neither is mod_worker. The only mpm you can safely use is prefork. This is, in my opinion, mod_perl's fatal flaw which will doom it.

Re: is mpm_event safe for modperl handler?

2022-08-04 Thread John Dunlap
No and neither is mod_worker. The only mpm you can safely use is prefork. This is, in my opinion, mod_perl's fatal flaw which will doom it. On Thu, Aug 4, 2022 at 2:27 AM pengyh wrote: > Hello > > yes i know mpm_prefork is pretty good for modperl applications. > if I run mod

is mpm_event safe for modperl handler?

2022-08-03 Thread pengyh
Hello yes i know mpm_prefork is pretty good for modperl applications. if I run modperl handler (for example, PerlAccessHandler) under mpm_event, is it safe for a production environment? thanks.

[request] Mogilefs modperl handler

2016-08-31 Thread Jaxson Peng
Nginx version higher than 1.0.0. The original author seems have no interest updating it. As an alternative, can anyone write a modperl handler for this purpose? That would be great for mogilefs community. Thanks.

Re: Modperl handler status code. Handler invoked two times per request.

2012-07-12 Thread Vincent Veyron
Le lundi 02 juillet 2012 à 03:50 +0400, rei...@ya.ru a écrit : > Hello. Hi, > So, whats wrong? > Dude, a lot of things... Not sure I can catch them all, but since nobody is tackling it, see some comments below. > I've found unexpected behavior of modperl handler.

Re: Modperl handler status code. Handler invoked two times per request.

2012-07-12 Thread Vincent Veyron
Le lundi 02 juillet 2012 à 03:50 +0400, rei...@ya.ru a écrit : > Hello. Hi, > So, whats wrong? > Dude, a lot of things... Not sure I can catch them all, but since nobody is tackling it, see some comments below. > I've found unexpected behavior of modperl handler.

Modperl handler status code. Handler invoked two times per request.

2012-07-01 Thread reisub
Hello. I've found unexpected behavior of modperl handler. If handler return Apache2::Const::HTTP_OK status all is ok. But other HTTP_* status code (tested with Apache2::Const::HTTP_NOT_FOUND; Apache2::Const::HTTP_FORBIDDEN and Apache2::Const::SERVER_ERROR) invoke handler

Re: ModPerl handler

2011-05-18 Thread McCarrell, Jeff
14:43:57 -0500 To: Mod_perl users mailto:modperl@perl.apache.org>> Subject: ModPerl handler Hi, I'm writing an handler to execute with mod_perl. I want to associate an handler of type PerlPostConfigHandler. I write this code (filename=StartupLog.pm): #file:Apache/StartupLog.pm

ModPerl handler

2011-05-18 Thread marco
Hi, I'm writing an handler to execute with mod_perl. I want to associate an handler of type PerlPostConfigHandler. I write this code (filename=StartupLog.pm): #file:Apache/StartupLog.pm package Apache::StartupLog; use strict; use warnings; use Apache(); use Apache::Constants qw(OK);

Re: rewrite urls to modperl handler

2008-11-03 Thread Michael Peters
[EMAIL PROTECTED] wrote: I have mod rewrite setup to redirect request that don't an existing file or directory to the perl handler. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/(.*) /ex_perl_h [L] but this doesn't work.

rewrite urls to modperl handler

2008-11-02 Thread perl
Hi all, I am new to mod_perl and am having a difficult time with rewrites. Either I am doing it the most wrong way, or it's so easy that I'm over looking it. I have searched and found nothing that seems to relate to what I want. I am working on a perl based wiki, to help me learn more about how p

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tomas Zerolo
On Thu, Jan 26, 2006 at 02:15:56PM +0100, Tom Schindl wrote: [...] > http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ > > is more appropriate for this problem ;-) Just to get that into the archives. Right, thanks. But with your original pointer it was easy to find out that. Thank

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tom Schindl
Tomas Zerolo wrote: > On Thu, Jan 26, 2006 at 11:27:44AM +0100, Tom Schindl wrote: > [...] > >>In mp2: >> - use different VHost with different Inc-paths >>http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlOptions_ > > > Wow. My imagination was too small to come up with that. Thanks a

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tomas Zerolo
On Thu, Jan 26, 2006 at 11:27:44AM +0100, Tom Schindl wrote: [...] > In mp2: > - use different VHost with different Inc-paths > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlOptions_ Wow. My imagination was too small to come up with that. Thanks a bucket! -- tomas signature.asc

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tom Schindl
In mp1: - Apache::VINC http://perl.apache.org/docs/1.0/guide/modules.html#Apache__PerlVINC___Allows_Module_Versioning_in_Location_blocks_and_Virtual_Hosts In mp2: - use different VHost with different Inc-paths http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlOptions_ Tom Tomas Ze

Several versions of a modperl handler in a server instance

2006-01-26 Thread Tomas Zerolo
Hi, list here's a general question which I'm sure has been addressed before. I've got a modperl2 handler within a module Foo. This module uses a whole hierarchy of helpers, like Foo::Bar, and so on (which live in a corresponding dir structure Foo/Bar and so on). Now I would like to have several

Re: Setting %ENV from modperl handler

2005-09-25 Thread Jie Gao
On Sun, 25 Sep 2005, Ray Licon wrote: > Date: Sun, 25 Sep 2005 02:52:59 -0700 (PDT) > From: Ray Licon <[EMAIL PROTECTED]> > To: modperl@perl.apache.org > Subject: Setting %ENV from modperl handler > > Hello, > I'm trying to put a value I obtain from a m

Re: Setting %ENV from modperl handler

2005-09-25 Thread Ray Licon
I'm using a PerlAccessHandler to protect pages. When the page is initially accessed, it triggers an authentication process. The PerlAccessHandler calls a content handler which gets Database values checks them, does some cookie stuff and then finally allows access to the original page. What I want

Re: Setting %ENV from modperl handler

2005-09-25 Thread Frank Wiles
On Sun, 25 Sep 2005 13:53:49 -0700 (PDT) Ray Licon <[EMAIL PROTECTED]> wrote: > Philip, > > I am using the handler directive: > > SetHandler perl-script > > But, I'm still not able to place a value into cgi from > my handler that is available to a perl cgi script by > examining the %ENV conten

Re: Setting %ENV from modperl handler

2005-09-25 Thread Philip M. Gollucci
Ray Licon wrote: Philip, I am using the handler directive: SetHandler perl-script But, I'm still not able to place a value into cgi from my handler that is available to a perl cgi script by examining the %ENV contents. I'm not even certin which of the calls I've attempted 'should' work. By ad

Re: Setting %ENV from modperl handler

2005-09-25 Thread Ray Licon
ip M. Gollucci" <[EMAIL PROTECTED]> wrote: > Ray Licon wrote: > > Hello, > > I'm trying to put a value I obtain from a modperl > > handler script into the environmental hash %ENV > > available in the cgi perl script, eventually > called > > via the

Re: Setting %ENV from modperl handler

2005-09-25 Thread Philip M. Gollucci
Ray Licon wrote: Hello, I'm trying to put a value I obtain from a modperl handler script into the environmental hash %ENV available in the cgi perl script, eventually called via the handler. I've tried calls: $r->subprocess_env->{'MY_USER'} = 'some_value'

Setting %ENV from modperl handler

2005-09-25 Thread Ray Licon
Hello, I'm trying to put a value I obtain from a modperl handler script into the environmental hash %ENV available in the cgi perl script, eventually called via the handler. I've tried calls: $r->subprocess_env->{'MY_USER'} = 'some_value'; $r->err_he

Re: [mp2] How to get a Location in the modperl handler?

2005-03-01 Thread David Wright
Let's assume that we have these lines in the apache config: SetHandler modperl PerlResponseHandler MyApp::Handler How can MyApp::Handler obtain an information that it is running within "/my/location"? Thank you for any help! Jozef -- jozef kosoru ht

Re: [mp2] How to get a Location in the modperl handler?

2005-03-01 Thread Ian Joyce
On Tue, 1 Mar 2005 15:44:35 +0100, Jozef Kosoru <[EMAIL PROTECTED]> wrote: > Hello, > > Let's assume that we have these lines in the apache config: > > > SetHandler modperl > PerlResponseHandler MyApp::Handler > > > How can MyApp::Handler obtain

[mp2] How to get a Location in the modperl handler?

2005-03-01 Thread Jozef Kosoru
Hello, Let's assume that we have these lines in the apache config: SetHandler modperl PerlResponseHandler MyApp::Handler How can MyApp::Handler obtain an information that it is running within "/my/location"? Thank you for any help! Jozef -- j

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-16 Thread Geoffrey Young
> One more problem I'm now having with this is in the UserDir. Is there > any way for me to get the mapping from apache of the real directory that > /~user/ means? not really. mod_userdir applies some URI translations that you can't really see. but they are pretty easy to figure out and emulate

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-16 Thread Rando Christensen
On Thu, 15 Jul 2004 16:26:54 -0600 Rando Christensen <[EMAIL PROTECTED]> wrote: > Yes, in order to make it work, I ended up making the handler be called > > /virtual/indexer, created a /virtual dir, did a global alias of > /virtual to that dir, and created an empty file named indexer. > Director

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-15 Thread Rando Christensen
Geoffrey Young wrote: well, if there are absolutely no real files at all, then I don't think DirectoryIndex will work - mod_dir only applies DirectoryIndex when $r->filename ends up being a real directory (a $r->content_type of DIR_MAGIC_TYPE). but other than that it looks ok :) so, if that doesn'

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-14 Thread Geoffrey Young
Rando Christensen wrote: > Geoffrey Young wrote: > >> see the DirectoryIndex documentation - you can specify a URL as well as >> individual files, so you can simply point to a mod_perl content >> handler and >> leave mod_autoindex/mod_dir to do what they do best. >> >> if you use DirectoryIndex

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-13 Thread Rando Christensen
Geoffrey Young wrote: see the DirectoryIndex documentation - you can specify a URL as well as individual files, so you can simply point to a mod_perl content handler and leave mod_autoindex/mod_dir to do what they do best. if you use DirectoryIndex then just put DirectoryIndex index.html /yourhan

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-13 Thread Geoffrey Young
Rando Christensen wrote: > Hi, I'd like to have a modperl handler that handles directory indexing > similar to mod_autoindex, as in fitting the following rule: > > if at any time it encounters a directory with no other valid indexing > method, the modperl handler is cal

Replicating mod_autoindex's behaviour with a modperl handler

2004-07-13 Thread Rando Christensen
Hi, I'd like to have a modperl handler that handles directory indexing similar to mod_autoindex, as in fitting the following rule: if at any time it encounters a directory with no other valid indexing method, the modperl handler is called and will produce output of the files withi