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
(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,
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
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
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
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.
かしこまりました
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
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
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
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
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
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
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
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
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
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
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
>
>
> 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
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
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
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
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
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.
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
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
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
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
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
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
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
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
Hello
is there a full gRPC implementation in perl rather than this protocal
buffer library?
https://metacpan.org/pod/Google::ProtocolBuffers::Dynamic
Thanks.
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.
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?
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
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
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
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
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
;>
>> * 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,
>>>
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
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
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,
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'
* 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(
* 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
>
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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:
>
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
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
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
]
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
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
>
> 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
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
> 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)
;
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
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
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 - 100 of 913 matches
Mail list logo