Re: path recognition question

2022-05-16 Thread Mithun Bhattacharya
You still have $r->path just pull the id from it ? On Thu, May 5, 2022, 4:20 PM Michael A. Capone wrote: > (Sorry for the late reply, been out of town) > > Recognizing that I've never gone as indepth with mod_perl as other users, > but it seems to me that accessing "id" here would just be a matt

Re: path recognition question

2022-05-05 Thread Michael A. Capone
(Sorry for the late reply, been out of town) Recognizing that I've never gone as indepth with mod_perl as other users, but it seems to me that accessing "id" here would just be a matter of grabbing the PATH_INFO environment variable, wouldn't it? if the url is www.example.com/app/user/12345,

Re: path recognition question

2022-04-21 Thread John Dunlap
I sent this 8 years ago but, at the time, no one was interested. [image: image.png] On Thu, Apr 21, 2022 at 9:40 AM John Dunlap wrote: > I ended up writing something custom to do that. > > On Wed, Apr 20, 2022 at 11:22 PM Henrik S > wrote: > >> given the sample url: >> >> /api/user/id >> >> th

Re: path recognition question

2022-04-21 Thread John Dunlap
I ended up writing something custom to do that. On Wed, Apr 20, 2022 at 11:22 PM Henrik S wrote: > given the sample url: > > /api/user/id > > the part of "/api/user" is fixed. and there is a handler setup for this > path. > > how to get the id part in mod_perl? > > in other framework I could ge

Re: path recognition question

2022-04-20 Thread Jacques Deguest
I would use path_info. See Apache2::RequestRec manual page. Regards, Jacques On 2022/04/21 12:21, Henrik S wrote: given the sample url: /api/user/id the part of "/api/user" is fixed.  and there is a handler setup for this path. how to get the id part in mod_perl? in other framework I coul

path recognition question

2022-04-20 Thread Henrik S
given the sample url: /api/user/id the part of "/api/user" is fixed. and there is a handler setup for this path. how to get the id part in mod_perl? in other framework I could get it with the similar format: /api/user/:id puts "hallo #{id}" Thank you.

Re: mod_dav question

2022-01-11 Thread Yamadaえりな
かしこまりました Thank you Jan and Jack I will try to implement that. Regards Yamada On Tue, Jan 11, 2022 at 4:10 PM Jacques Deguest wrote: > Yamada-san, > > You would need to set up a perl response handler like: > > SetHandler modperl > PerlSetupEnv On > PerlResponseHandler +Your::WebDav

Re: mod_dav question

2022-01-11 Thread Jacques Deguest
Yamada-san, You would need to set up a perl response handler like:     SetHandler modperl     PerlSetupEnv On     PerlResponseHandler +Your::WebDav::Module and in your module Your::WebDav::Module you would write something like: BEGIN {     use strict;     use warnings;     use Apache2::Reques

Re: mod_dav question

2022-01-11 Thread Jan Kasprzak
Yamada-san, Yamadaえりな wrote: : We are using mod_dav with apache2.4 to manage files via webdav protocol. : We want to limit file uploading based on the user's total storage. : For instance, if a user has his storage size reached to the max limit, he : can't upload files anymore. : Do you ha

mod_dav question

2022-01-10 Thread Yamadaえりな
Hello list, We are using mod_dav with apache2.4 to manage files via webdav protocol. We want to limit file uploading based on the user's total storage. For instance, if a user has his storage size reached to the max limit, he can't upload files anymore. Do you have any suggestions on how I can imp

Re: Question about deployment of math computing

2020-08-07 Thread Ruben Safir
On Thu, Aug 06, 2020 at 10:10:38PM -0500, Mithun Bhattacharya wrote: > Ruben this conversation had nothing to do with any specific AI use - since > we did not ask to be spammed with your ethics opinion could you please stop ***Boink*** that is wrong. If you want to discuss the destructive use of

Re: Question about deployment of math computing

2020-08-06 Thread Ruben Safir
On Thu, Aug 06, 2020 at 10:10:38PM -0500, Mithun Bhattacharya wrote: > Ruben this conversation had nothing to do with any specific AI use - since > we did not ask to be spammed with your ethics opinion could you please stop > misusing the mod_perl forum for such activities ? So you are using modpe

Re: Question about deployment of math computing

2020-08-06 Thread Mithun Bhattacharya
Ruben this conversation had nothing to do with any specific AI use - since we did not ask to be spammed with your ethics opinion could you please stop misusing the mod_perl forum for such activities ? On Thu, Aug 6, 2020 at 9:00 PM Ruben Safir wrote: > On Wed, Aug 05, 2020 at 10:47:48AM -0500, M

Re: Question about deployment of math computing

2020-08-06 Thread Ruben Safir
On Wed, Aug 05, 2020 at 10:47:48AM -0500, Mithun Bhattacharya wrote: > Assuming that is genuine curiosity can we please not deviate from the topic > ? > > On Wed, Aug 5, 2020 at 6:19 AM Ruben Safir wrote: > > > On Wed, Aug 05, 2020 at 09:46:18AM +0800, Wesley Peng wrote: > > > Hi > > > > > > Mit

Re: Question about deployment of math computing

2020-08-05 Thread Ruben Safir
On Wed, Aug 05, 2020 at 10:47:48AM -0500, Mithun Bhattacharya wrote: > Assuming that is genuine curiosity can we please not deviate from the topic > ? IBM felt that way once. I think it is important to know what kind of aps we are developing, and for what uses.. You are aware of the broad use of

Re: Question about deployment of math computing

2020-08-05 Thread Mithun Bhattacharya
Assuming that is genuine curiosity can we please not deviate from the topic ? On Wed, Aug 5, 2020 at 6:19 AM Ruben Safir wrote: > On Wed, Aug 05, 2020 at 09:46:18AM +0800, Wesley Peng wrote: > > Hi > > > > Mithun Bhattacharya wrote: > > >Do you really need a webserver which is providing a blocki

Re: Question about deployment of math computing

2020-08-05 Thread Ruben Safir
On Wed, Aug 05, 2020 at 09:46:18AM +0800, Wesley Peng wrote: > Hi > > Mithun Bhattacharya wrote: > >Do you really need a webserver which is providing a blocking service ? > > yes, this is a prediction server, which would be deployed in PROD > environment, the client application would request the

Re: Question about deployment of math computing [EXT]

2020-08-05 Thread Mark Blackman
> > > The good thing about Apache is it's dynamic rescaling - which isn't as easy > with starman - if you have a large code base the spin up time for starman can > be quite large as it appears (to make it efficient) load in every bit of code > that the application needs - even if it is one

Re: Question about deployment of math computing [EXT]

2020-08-05 Thread Wesley Peng
James, James Smith wrote: The services which use apache/mod_perl work reliably and return data for these - the dancer/starman sometimes fail/hang as there are no backends to serve the requests or those backends timeout requests to the nginx/proxy (but still continue using resources). The team

RE: Question about deployment of math computing [EXT]

2020-08-05 Thread James Smith
So yes use starman for simple apps if you need to, but for complex stuff I find mod_perl setup more reliable. James -Original Message- From: Wesley Peng Sent: 05 August 2020 04:31 To: dc...@prosentient.com.au; modperl@perl.apache.org Subject: Re: Question about deploym

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
to. David Cook -Original Message- From: Wesley Peng Sent: Wednesday, 5 August 2020 1:31 PM To: dc...@prosentient.com.au; modperl@perl.apache.org Subject: Re: Question about deployment of math computing Hi dc...@prosentient.com.au wrote: That's interesting. After re-reading your ear

RE: Question about deployment of math computing

2020-08-04 Thread dcook
e day, it depends on the workload that you're trying to cater to. David Cook -Original Message- From: Wesley Peng Sent: Wednesday, 5 August 2020 1:31 PM To: dc...@prosentient.com.au; modperl@perl.apache.org Subject: Re: Question about deployment of math computing Hi dc...@prosen

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
resource is permitted. And the process management can scale up/down the children automatically. So my real question is, for a CPU consuming service, the event driven service like starman, has no advantage than preforked service like Apache. Am I right? Thanks.

RE: Question about deployment of math computing

2020-08-04 Thread dcook
perl starting with RHEL 8, although EPEL 8 now has mod_perl in it. Something to think about. David Cook -Original Message- From: Wesley Peng Sent: Wednesday, 5 August 2020 1:00 PM To: dc...@prosentient.com.au; modperl@perl.apache.org Subject: Re: Question about deployment

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi dc...@prosentient.com.au wrote: If your app isn't human-facing, then I don't see why a little delay would be a problem? Our app is not human facing. The application by other department will request the result from our app via HTTP. The company has huge big-data stack deployed, such as

RE: Question about deployment of math computing

2020-08-04 Thread dcook
ur app isn't human-facing, then I don't see why a little delay would be a problem? David Cook -Original Message- From: Wesley Peng Sent: Wednesday, 5 August 2020 11:46 AM To: modperl@perl.apache.org Subject: Re: Question about deployment of math computing Hi Mithun Bhattac

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi Mithun Bhattacharya wrote: Do you really need a webserver which is providing a blocking service ? yes, this is a prediction server, which would be deployed in PROD environment, the client application would request the prediction server for results as scores. You can think it as online rec

Re: Question about deployment of math computing

2020-08-04 Thread Mithun Bhattacharya
Do you really need a webserver which is providing a blocking service ? Assuming you are doing some sort of map reduce you would be better of creating a job queue and placing requests into it. You would have a separate consumer of the queue which could scale up or down depending upon how long the j

Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi We do math programming (so called machine learning today) in webserver. The response would be slow, generally it will take 100ms~500ms to finish a request. For this use case, shall we deploy the code within preforked modperl ,or event-driven server like dancer/starman? (we don't use DB like

Re: AW: Question on a rewrite rule

2020-01-08 Thread Wesley Peng
Hi on 2020/1/9 14:27, Andreas Mock wrote: You have to see in which virtualhost section this rule was put into. I'm pretty sure it's only in the http section. You are so right. they are put in plain HTTP section. So requets were coming with HTTP, they will be rewriten to HTTPS, which is in ano

AW: Question on a rewrite rule

2020-01-08 Thread Andreas Mock
You have to see in which virtualhost section this rule was put into. I'm pretty sure it's only in the http section. -Ursprüngliche Nachricht- Von: Wesley Peng Gesendet: Donnerstag, 9. Januar 2020 03:44 An: modperl@perl.apache.org Betreff: Question on a rewrite rule He

gRPC implement question

2020-01-08 Thread Wesley Peng
Hello is there a full gRPC implementation in perl rather than this protocal buffer library? https://metacpan.org/pod/Google::ProtocolBuffers::Dynamic Thanks.

Question on a rewrite rule

2020-01-08 Thread Wesley Peng
st to HTTPS request. My question is, is this not a dead loop? For HTTPS request, the SERVER_NAME is also matched, so it rewrites again and again... My guess it's a dead rewrite loop, but it actually works fine. I am not sure about this, please help. Thanks.

Re: New release of libapreq2 (Was: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request))

2019-10-24 Thread Steve Hay
On Thu, 24 Oct 2019 at 15:50, wrote: > > On Wednesday 06 September 2017 08:23:12 Steve Hay wrote: > > On 19 January 2017 at 14:25, Issac Goldstand wrote: > > > That release was canceled due to lack of votes, > > Hello Issac! Have you released this version on cpan as trial release for > testing?

New release of libapreq2 (Was: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request))

2019-10-24 Thread pali
On Wednesday 06 September 2017 08:23:12 Steve Hay wrote: > On 19 January 2017 at 14:25, Issac Goldstand wrote: > > That release was canceled due to lack of votes, Hello Issac! Have you released this version on cpan as trial release for testing? I have not found it on https://metacpan.org/releas

Re: simple question. Not using 2.xxx10. query params

2018-01-09 Thread Chris Bennett
On Tue, Jan 09, 2018 at 10:01:28PM +, Adam Prime wrote: > libapreq2 (Apache2::Request) does this kind of stuff, or you can use a > framework that sits on top of mod_perl that handles it for you. If you want > to write raw handlers, the libapreq2 is probably the way to go. > > https://httpd.ap

Re: simple question. Not using 2.xxx10. query params

2018-01-09 Thread Sujeeva Seneviratne
Try this: my %params = $r->args; my $lang = $params{lang}; On Tuesday, January 9, 2018, 3:36:04 PM CST, Chris Bennett wrote: I am using the 2xxx09 version on OpenBSD. The manual pages are still unfinished on this version, so I can't find a way to probe for any particular parameter such

Re: simple question. Not using 2.xxx10. query params

2018-01-09 Thread Adam Prime
libapreq2 (Apache2::Request) does this kind of stuff, or you can use a framework that sits on top of mod_perl that handles it for you. If you want to write raw handlers, the libapreq2 is probably the way to go. https://httpd.apache.org/apreq/docs/libapreq2/ Adam On 18-01-09 10:18 PM, Chris B

simple question. Not using 2.xxx10. query params

2018-01-09 Thread Chris Bennett
I am using the 2xxx09 version on OpenBSD. The manual pages are still unfinished on this version, so I can't find a way to probe for any particular parameter such as URL?lang=es&happy=yes&sad=no $r->args(); just produces a string. Do I really have to parse strings myself or is there a method that

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-09-06 Thread Steve Hay
;> >> * JW wrote: >> >>> Date: Wed, 18 Jan 2017 20:06:41 + >>> From: JW >>> To: "modperl@perl.apache.org" >>> Subject: Question about Apache 2.4 and libapreq2 (Apache2::Request) >>> >>> >>> Hi, >>>

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-13 Thread William A Rowe Jr
Yes, that's an artifact of the phase in which we handle the remoteip transposition. It could be slightly earlier which is why I raised the question to the httpd dev community. On Tue, Mar 14, 2017 at 12:31 AM, JW wrote: > > Don't know the answer to your question about remoteip

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-13 Thread JW
Don't know the answer to your question about remoteip ... However, what I noted is that the Apache remoteip module, when configured with "RemoteIPHeader X-Forwarded-For", deletes the X-Forwarded-For header. In the PerlPostReadRequestHandler stage, the X-Forwarded-For headerexist

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-13 Thread William A Rowe Jr
13, 2017 at 6:28 PM, JW wrote: > > From: William A Rowe Jr > To: JW > Cc: "modperl@perl.apache.org" > Sent: Friday, March 10, 2017 1:44 PM > Subject: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request) > > On Thu,

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-10 Thread William A Rowe Jr
On Thu, Mar 9, 2017 at 9:53 PM, JW wrote: > > It's been over a month since moving to Apache 2.4. It was fairly > straightforward and required > little code to be updated, most of it Apache config. Everything runs as it > did before the update and I've > had no problems. The one function that didn'

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-10 Thread Jie Gao
* JW wrote: > This mod_perl server is behind a proxy on the same machine. Under Apache 2.2, > $r->remote_ip() > returned 127.0.0.1 and not the user's actual IP.  So, a > PerlPostReadRequestHandler extracted the user's > IP address from the X-Forwarded-For header and set it with $r->remote_ip(

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-09 Thread Jie Gao
* JW wrote: > Date: Fri, 10 Mar 2017 03:53:27 + > From: JW > To: "modperl@perl.apache.org" > Subject: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request) > > Hi, > Back in January I was planning on moving to Apache 2.4+mod_perl+libapreq2 >

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-03-09 Thread JW
Hi, Back in January I was planning on moving to Apache 2.4+mod_perl+libapreq2 from Apache 2.2+mod_perl+libapreq2. I'd asked if anyone had problems doing a similar move -- the answer was no. Thank you again to everyone who replied my earlier post.  It's been over a month since moving to Apache

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-01-20 Thread JW
On Wed, 18 Jan 2017 20:06:41 + (UTC) JW wrote: >  before I make a permanent switch to Apache 2.4, I was wondering if anyone >doing a similar upgrade experienced problems using libapreq2 and what >alternative(s) they chose. > You are more likely to encounter problems with Apache t

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-01-19 Thread Issac Goldstand
a month ago, and it is available at https://home.apache.org/~issac/libapreq2-2.14.tar.gz . Regards, Jie * JW wrote: Date: Wed, 18 Jan 2017 20:06:41 + From: JW To: "modperl@perl.apache.org" Subject: Question about Apache 2.4 and libapreq2 (Apache2::Request) Hi, I cur

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-01-19 Thread Vincent Veyron
On Wed, 18 Jan 2017 20:06:41 + (UTC) JW wrote: > before I make a permanent switch to Apache 2.4, I was wondering if anyone > doing a similar upgrade experienced problems using libapreq2 and what > alternative(s) they chose. > You are more likely to encounter problems with Apache than li

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-01-18 Thread Jie Gao
There was a new release candidate over a month ago, and it is available at https://home.apache.org/~issac/libapreq2-2.14.tar.gz . Regards, Jie * JW wrote: > Date: Wed, 18 Jan 2017 20:06:41 + > From: JW > To: "modperl@perl.apache.org" > Subject: Questio

Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-01-18 Thread Joseph Schaefer
We've been using apreq with 2.4 for two years without issue at work. I can't imagine why anyone would have a problem with it on any version of httpd 2.x. Sent from my iPhone > On Jan 18, 2017, at 3:06 PM, JW wrote: > > > Hi, > > I currently use Apache 2.2, mod_perl and libapreq2 (for Apache

Question about Apache 2.4 and libapreq2 (Apache2::Request)

2017-01-18 Thread JW
Hi, I currently use Apache 2.2, mod_perl and libapreq2 (for Apache2::Request and Apache2::Cookie). I did a test installation of Apache 2.4 (yum), mod_perl (source) and libapreq2-2.13 (source). and it seems to work fine. The last update of libapreq2 was in 2010. I'm aware that not every librar

Re: Howto Apache2::AuthCookieDBI and followup question

2016-09-30 Thread Vincent Veyron
On Sat, 1 Oct 2016 00:16:59 +0200 Tosh Cooey wrote: > > Now the followup. I personally need extra dynamism, specifically I need > DBDParams and SessionCookieName to be dynamic for each request. Intense > googling has lead me to believe I can do so within a block, > something like: > > When

Howto Apache2::AuthCookieDBI and followup question

2016-09-30 Thread Tosh Cooey
Ok, so it seems with Apache > 2.4 the functionality of Apache2::AuthCookieDBI can be duplicated using modules, specifically: mod_auth_form AND mod_authn_dbd This article gives a good writeup about it: https://kodingnotes.wordpress.com/2013/02/26/authentication-in-apache2-4-part-1-installation/

Re: question on Apache2_4::AuthCookie

2016-04-07 Thread tomcat
st be used in the new "AuthzProvider" subs). I could of course hack the values of these constants under 2.4, and use their values directly in my module, but that is rather "inelegant". My question is thus : would there be a way to make the import of these constants conditional on the Apache

Re: question on Apache2_4::AuthCookie

2016-04-07 Thread Lathan Bidwell
is because these new AUTHZ_* constants must be used in the new > "AuthzProvider" subs). > > I could of course hack the values of these constants under 2.4, and use > their values directly in my module, but that is rather "inelegant". > > My question is thus

Re: question on Apache2_4::AuthCookie

2016-04-07 Thread Michael Schout
On 4/6/16 11:51 AM, A. Warnier wrote: > I could of course hack the values of these constants under 2.4, and use > their values directly in my module, but that is rather "inelegant". If you insist on using the same module/source for both 2.4 and 2.2 I do not see any other option. The AUTHZ_GRANTE

question on Apache2_4::AuthCookie

2016-04-06 Thread A. Warnier
hat is because these new AUTHZ_* constants must be used in the new "AuthzProvider" subs). I could of course hack the values of these constants under 2.4, and use their values directly in my module, but that is rather "inelegant". My question is thus : would there be a way t

Re: Install Question

2013-06-06 Thread Fred Moyer
u have would be great. > > Thanks, > Tracy > > > From: Eugene Toropov > To: Tracy Kukuselis > Cc: "modperl-h...@perl.apache.org" ; > "modperl@perl.apache.org" > Sent: Monday, June 3, 2013 12:18 PM > Subject: Re: Install Question > > Hi Tracy

Re: Install Question

2013-06-04 Thread Tracy Kukuselis
    Any suggestions you have would be great.   Thanks, Tracy    From: Eugene Toropov To: Tracy Kukuselis Cc: "modperl-h...@perl.apache.org" ; "modperl@perl.apache.org" Sent: Monday, June 3, 2013 12:18 PM Subject: Re: Install Questio

Re: Install Question

2013-06-03 Thread Eugene Toropov
Hi Tracy, As far as I remember must be something like perl Makefile.PL MP_APXS=/usr/bin/apxs Cheers Eugene On Jun 3, 2013, at 7:42 PM, Tracy Kukuselis wrote: > > Hello, > > I am trying to install modperl 2.0.3 with httpd 2.4.2 (also tried 2.4.4), but > am getting the following error: >

Re: Install Question

2013-06-03 Thread Fred Moyer
org" > Sent: Monday, June 3, 2013 12:43 PM > Subject: Re: Install Question > > On Mon, Jun 3, 2013 at 8:42 AM, Tracy Kukuselis > wrote: >> I am trying to install modperl 2.0.3 with httpd 2.4.2 (also tried 2.4.4), >> but am getting the following error: > > 2.4 i

Re: Install Question

2013-06-03 Thread Fred Moyer
On Mon, Jun 3, 2013 at 8:42 AM, Tracy Kukuselis wrote: > I am trying to install modperl 2.0.3 with httpd 2.4.2 (also tried 2.4.4), > but am getting the following error: 2.4 isn't officially supported yet, although there are a couple builds on the list you might try. See the list archives for thos

Install Question

2013-06-03 Thread Tracy Kukuselis
  Hello, I am trying to install modperl 2.0.3 with httpd 2.4.2 (also tried 2.4.4), but am getting the following error: Failed to obtain the MPM name. Please specify MP_APXS=/full/path/to/apxs to solve this problem. make:*** [path] Error 255 Using the following configure command configure

RE: Question on how execution order of Mod_Persl

2013-02-14 Thread Timothy Gallagher
] Sent: Wednesday, February 06, 2013 12:42 PM To: mod_perl list Subject: Re: Question on how execution order of Mod_Persl Timothy Gallagher wrote: > Hello all, > I have a question for you that I am needed some help/guidance on. I am not > sure if this is a question for Apache, perl or mo

Re: Question on how execution order of Mod_Persl

2013-02-06 Thread André Warnier
Timothy Gallagher wrote: Hello all, I have a question for you that I am needed some help/guidance on. I am not sure if this is a question for Apache, perl or mod_perl, I believe this is the correct place to ask. I am building a reverse proxy server that authenticates a user via the client

Question on how execution order of Mod_Persl

2013-02-06 Thread Timothy Gallagher
Hello all, I have a question for you that I am needed some help/guidance on. I am not sure if this is a question for Apache, perl or mod_perl, I believe this is the correct place to ask. I am building a reverse proxy server that authenticates a user via the client SSL certificate that is

Re: setHandler question

2012-12-17 Thread André Warnier
Rafael Caceres wrote: ... What you want works for me when reverse proxying to Tomcat or another Apache by adding a require valid-user inside the LocationMatch Thanks for your interest. That would indeed work if my authentication sub returned an "auth required" when the request is not authen

Re: setHandler question

2012-12-16 Thread Rafael Caceres
Andre, Ryan Gies wrote: > On 12/14/2012 8:52 AM, André Warnier wrote: >> I suppose that in the end I will want to do something like this : >> >> my $finfo = $r->finfo(); >> # do something to $finfo to set the flag >> $r->finfo($finfo); >> $r->handler('modperl'); >> $r->set_handlers(PerlResponseHan

Re: setHandler question

2012-12-16 Thread André Warnier
André Warnier wrote: Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r->add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, "stuff" an additional SetHandler configuration directive into the Apache configuration for my

Re: Apache2 constants syntax question

2012-12-16 Thread Torsten Förtsch
On 12/16/2012 12:59 PM, André Warnier wrote: > Is there a difference ? no > If not, what was the idea in defining some of them twice with a > different name ? I think mostly historical. Mp1 already had these overlapping sets. In the beginning mp2 tried to be as compatible as possible to mp1. To

Apache2 constants syntax question

2012-12-16 Thread André Warnier
Hi. I suppose that this is a bit academical, but I'm wondering anyway. In Apache2::Const, there are a number of constants member of the ":common" import group, which are (presumably) the same as their near equivalent in the ":http" import group. For example : Apache2::Const::FORBIDDEN ~ Apache

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r->add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, "stuff" an additional SetHandler configuration directive into the Apache configuration for my request, telling Apac

Re: setHandler question

2012-12-15 Thread Torsten Förtsch
On 12/15/2012 01:30 PM, André Warnier wrote: > And somehow the $r->add_config() looks a bit like a roundabout way of > achieving what I want. If I can, kind of, "stuff" an additional > SetHandler configuration directive into the Apache configuration for my > request, telling Apache "now do as if t

Re: setHandler question

2012-12-15 Thread André Warnier
x27;SetHandler ...'], ~0) since ~0 is an integer with all bits set. I can't remember why I hinted at $r->add_config instead of $r->handler('newhandler') at the time of the first discussion. Perhaps there was a reason (like the wrong request phase), perhaps I had a blackout.

Re: setHandler question

2012-12-15 Thread Torsten Förtsch
On 12/14/2012 02:52 PM, André Warnier wrote: > Or am I totally off-track here ? I think yes, you are confused by the similarity of "finfo" and "OR_FILEINFO". The finfo part of $r is simply a data structure that represents the metadata of a file on the filesystem such as modification dates, access

A question for security

2012-12-14 Thread Feng He
Hi, Though this is nothing about modperl but a security question about the development environment. I use bitbucket.org's private git hosting for my project development. I just git clone the repo dir from the remote orginal. And I will use directly this dir as app directory ( my han

Re: setHandler question

2012-12-14 Thread Ryan Gies
is apparently not enough. It is still (later) proxying the request to IIS. So it is apparently ignoring the line $r->handler('modperl'); # (1) What am I missing ? (as another way of phrasing the initial question) I am led to believe that it has to do with the "map-to-storage&quo

Re: setHandler question

2012-12-14 Thread André Warnier
perl'); # (1) $r->set_handlers(PerlResponseHandler => \&_my_send_login_handler); # (2) $r->set_handlers(PerlFixupHandler => sub { $_[0]->handler('modperl') } ); # (3) return Apache2::Const::OK; } But that is apparently not enough. It is still (later) pro

Re: setHandler question

2012-12-14 Thread Ryan Gies
On 12/14/2012 8:52 AM, André Warnier wrote: I suppose that in the end I will want to do something like this : my $finfo = $r->finfo(); # do something to $finfo to set the flag $r->finfo($finfo); $r->handler('modperl'); $r->set_handlers(PerlResponseHandler => \&_my_response_handler); but how do

setHandler question

2012-12-14 Thread André Warnier
Hi. Quite a while ago (2008), this discussion on the list : http://marc.info/?l=apache-modperl&m=122399752819709&w=2 was about how to, within a PerlAuthenHandler, override the ResponseHandler which would normally kick in later in the cycle, and force it to be mod_perl and a specific (other) P

Re: question on sub-requests

2012-11-14 Thread Torsten Förtsch
On 11/14/2012 03:53 PM, André Warnier wrote: > The tidbit above makes me think about a possibility to solve another > issue that happens from time to time : some users browsers that are NOT > refreshing their copies of stylesheets or javascript libraries, even > though they have been modified. > No

Re: question on sub-requests

2012-11-14 Thread André Warnier
Torsten Förtsch wrote: On 11/14/2012 02:48 PM, André Warnier wrote: I my particular case, the sendfile() solution above works fine, because I am sure in this case that no additional processing needs to take place on those static pages. What I meant in particular was the HTTP code 304 generatio

Re: question on sub-requests

2012-11-14 Thread Torsten Förtsch
On 11/14/2012 02:48 PM, André Warnier wrote: > I my particular case, the sendfile() solution above works fine, because > I am sure in this case that no additional processing needs to take place > on those static pages. What I meant in particular was the HTTP code 304 generation. With your solution

Re: question on sub-requests

2012-11-14 Thread André Warnier
rtfully-crafted static page describing that item in all its glory. The static pages in question are in several subdirectories of DocumentRoot, and at different levels. Fortunately, all the top sub-directories names start with "/Shop_" (after which there can be "Quilts" or &qu

Re: question on sub-requests

2012-11-14 Thread Torsten Förtsch
ef/xyz.html", I would > respond with a first containing the form (generated by a > back-end application, and depending on the item), and a second > containing her artfully-crafted static page describing that item in all > its glory. > > The static pages in question are in severa

Re: question on sub-requests

2012-11-13 Thread gAzZaLi
response to that sub-request, and insert it into the first of the output document. - having the response handler do a lookup_uri of the original URI, get the resulting filename, reading the file and insert its content into the second of the output document. My 1st question is : is the abo

Re: question on sub-requests

2012-11-13 Thread André Warnier
filename, reading the file and insert its content into the second of the output document. My 1st question is : is the above a valid plan, or is there something fundamentally wrong with this approach ? My 2d question is : looking at the Apache2::SubRequest documentation, I do not see a clear way of

Re: question on sub-requests

2012-11-13 Thread Torsten Förtsch
ument. > - having the response handler do a lookup_uri of the original URI, get > the resulting filename, reading the file and insert its content into the > second of the output document. > > My 1st question is : is the above a valid plan, or is there something > fundamentally

Re: question on sub-requests

2012-11-13 Thread André Warnier
(which is a static file). I am thinking of doing this by : - creating a mod_perl ResponseHandler - having this response handler make a first sub-request to the "/cgi-bin/mangle.pl?arg=ghi" URI, grabbing the content of the response to that sub-request, and insert it into the first of the

Re: question on sub-requests

2012-11-12 Thread André Warnier
a first sub-request to the "/cgi-bin/mangle.pl?arg=ghi" URI, grabbing the content of the response to that sub-request, and insert it into the first of the output document. - having the response handler do a lookup_uri of the original URI, get the resulting filename, reading the file and

Re: question on sub-requests

2012-11-12 Thread gAzZaLi
he content of the response to that sub-request, and insert it into the first of the output document. - having the response handler do a lookup_uri of the original URI, get the resulting filename, reading the file and insert its content into the second of the output document. My 1st question is

question on sub-requests

2012-11-12 Thread André Warnier
ile and insert its content into the second of the output document. My 1st question is : is the above a valid plan, or is there something fundamentally wrong with this approach ? My 2d question is : looking at the Apache2::SubRequest documentation, I do not see a clear way of getting the r

Re: A question about the dumplicated named global variables

2012-11-09 Thread Feng He
> > BTW, to avoid confusion I'd prevent the import() function from being > called in startup.pl by either > >   use Config1 (); >   use Config2 (); > > or > >   BEGIN { > require Config1; > require Config2; >   } > > Torsten Thanks Torsten. So if I don't use them in the startup.pl, then n

Re: A question about the dumplicated named global variables

2012-11-09 Thread Torsten Förtsch
On 11/09/2012 06:40 AM, Feng He wrote: > Nobody knows this item? I think you didn't get an answer here because the question is not related to modperl. It's purely perl matter. Exporting a variable out of package A into package X means something like *X::var=\$A::var; Now, you h

Re: A question about the dumplicated named global variables

2012-11-08 Thread Feng He
>  handle_with($example_var); > } > > 1; > > in the handler two the code is: > > package Myhand2; > use Apache2::RequestRec (); > ... > use Config2; > > our $example_var; > > sub handler { > >  my $r = shift; >  handle_with($example_var)

A question about the dumplicated named global variables

2012-11-06 Thread Feng He
; handle_with($example_var); } 1; in the handler two the code is: package Myhand2; use Apache2::RequestRec (); ... use Config2; our $example_var; sub handler { my $r = shift; handle_with($example_var); } 1; Finally my question is, since the global variable $example_var is defined in

Re: Question about caching

2012-03-13 Thread Dave Hodgkinson
On 13 Mar 2012, at 21:32, Perrin Harkins wrote: > > Turn on the template caching. It's basically free and will speed > things up. Caching at the page level is the ultimate in terms of > speed, but it will only be possible for pages that are not dynamic on > a per-user basis. Template caching

Re: Question about caching

2012-03-13 Thread Perrin Harkins
On Tue, Mar 13, 2012 at 3:51 PM, Dan Axtell wrote: > I understand the value of having one light-weight server for static content, > and a reverse proxy back to a heavy-weight Apache with mod_perl, and I > understand I can use something like Varnish or mod_cache to add a caching > layer,  but I'm w

  1   2   3   4   5   6   7   8   9   10   >