I'd like to use APR::Request's custom parser under some different
environments
like FastCGI, PerlEx and PersistentPerl. All these tie STDIN to some
package, which defines
methods to read a particular socket. APR::Request::CGI doesn't work,
because the
operating system's STDIN is not used.
Current
On 9/16/05, Carl Johnstone <[EMAIL PROTECTED]> wrote:
Can add my voice to the "BigIP should do this" school of thought. If it'seffectively converting HTTPS into HTTP requests for you, then I would expectit should be able to rewrite redirects automatically for you too. Same way
that apache does it i
On 9/16/05, Jeff <[EMAIL PROTECTED]> wrote:
In your BigIPs Apache httpd.conf you might try:# bounce to https only) ServerName www.mywebsite.com Redirectpermanent /
https://www.mywebsite.com/Which tells your client browsers to use HTTPS for all requests for therelevant website.
Unfortunate
On 9/16/05, Torsten Foertsch <[EMAIL PROTECTED]> wrote:
Maybe in it is sufficient to set $r->subprocess_env(HTTPS=>'on') in aPostReadRequest handler. Maybe even PerlSetEnv outside any or might help. This will also set environment variables very early.
$ENV{HTTPS} is not good.
Ah, I'd neglected to
Damyan Ivanov wrote:
Wouldn't it be better to parse responses on BigIPs and replace 'http'with 'https' if redirect is detected? I have no idea how to do this, though.
The BigIP has some TCL functions available during the response, but I'm
assuming that any regexing I do there would be not enough,
Thank you.
That is what I was hoping to hear.
Thanks,
Justin
-Original Message-
From: Tom Schindl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 16, 2005 12:06 AM
To: Justin Luster
Cc: 'mod_perl List'
Subject: Re: Do I need Apache2::RequestUtil::request( )?
-BEGIN PGP SIGNED ME
> This is just Perl related but as it's running under
> mod_perl, I'm sure you lot won't mind ;)
>
> I'm trying to benchmark a piece of code with timeit
> and I need a code ref. The thing is, I can't make a
> code ref out of
>
> $self->method_to_invoke( $arg1, $arg2 );
>
> I've tried various
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Anthony Gardner wrote:
> This is just Perl related but as it's running under
> mod_perl, I'm sure you lot won't mind ;)
>
> I'm trying to benchmark a piece of code with timeit
> and I need a code ref. The thing is, I can't make a
> code ref out of ...
Off topic but cc'd to the list to save dupes!...
Anthony Gardner wrote:
Well, it wasn't obvous to me. So, what does sub{}
actually do?
It simply creates a sub but just doesn't give it a name, and it has a
'return value' which is a code ref. Try to imagine normal subs as
simply assignin
Well, it wasn't obvous to me. So, what does sub{}
actually do?
I'm clear about ...
my $code_ref = sub{ print "sth" }
as I've wrapped some perlcode in a code ref ;)
I'm clear about
sub func_to_invoke() {
print "sth"
}
my $code_ref = \&func_to_invoke()
but my problem involved a ref to a
Anthony Gardner wrote:
and I need a code ref. The thing is, I can't make a
code ref out of
$self->method_to_invoke( $arg1, $arg2 );
I'm going to get into trouble for stating the obvious here but have you
tried:
$code_ref = sub { return shift->method_to_invoke( @_ ) }
(ie. create a n
This is just Perl related but as it's running under
mod_perl, I'm sure you lot won't mind ;)
I'm trying to benchmark a piece of code with timeit
and I need a code ref. The thing is, I can't make a
code ref out of
$self->method_to_invoke( $arg1, $arg2 );
I've tried various obvious ways but t
On Friday 16 September 2005 12:08, Anthony Gardner wrote:
> Can s.o. explain what is wrong with the following code
>
>
> $r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
>
> because, when it comes to getting the value from
> pnotes later with $r->pnotes(KEY), it returns the
> number of
Yeah, thta's cheeky. I totally overlooked what push
was returning.
I'll remember for next time.
Cheers all.
--- Damyan Ivanov <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Anthony Gardner wrote:
> > Can s.o. explain what is wrong with the following
> code
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Anthony Gardner wrote:
> Can s.o. explain what is wrong with the following code
>
>
> $r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
>
> because, when it comes to getting the value from
> pnotes later with $r->pnotes(KEY), it returns the
Can you please elaborate on why apache filters can be an issue with the autoflush problem that I noticed ?
Also, I noticed that the autoflush work properly when I flush it to a
regular file. Its only when I choose STDOUT that the flushing gets
delayed. Is there some buffering that happens with STD
Can add my voice to the "BigIP should do this" school of thought. If it's
effectively converting HTTPS into HTTP requests for you, then I would expect
it should be able to rewrite redirects automatically for you too. Same way
that apache does it in mod_proxy.
However can I also point out tha
I have updated my "Installing Apache 1.3.x with mod_accel and
mod_deflate" webpage at http://www.aaanime.net/pmak/apache/mod_accel/
to have links to current versions of software packages. The previous
version of the webpage was 3 years old.
mod_accel is a module that allows proxying to backend hea
From: "Anthony Gardner" <[EMAIL PROTECTED]>
Can s.o. explain what is wrong with the following code
$r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
It's a perl problem - not a mod_perl problem. push returns the new number of
elements on the array. So in effect you're doing:
$r->pnot
On Wednesday 07 September 2005 04:25, Philip M. Gollucci wrote:
> Torsten Foertsch wrote:
> > Hi,
> >
> > this patch introduces $Apache2::SizeLimit::USE_SMAPS which is 1 by
> > default. If /proc/PID/smaps are not available Apache::SizeLimit resets it
> > to 0 itself. It can be reset by the user if
Can s.o. explain what is wrong with the following code
$r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
because, when it comes to getting the value from
pnotes later with $r->pnotes(KEY), it returns the
number of elements in the array and not the array ref.
I've had to write ..
On Friday 16 September 2005 02:05, Mark Moseley wrote:
> Greetings. I've been scouring the list and the net for a solution for this
> but my apologies in advance if I didn't get the search terms right and
> missed a RTFM answer.
>
> I work for a web hosting company and we recently purchased a pair
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jeff wrote:
>> That's not entirely true. Debian Sarge (stable) and Ubuntu Hoary both
>> include packages for Apache 1.3.33 and Apache2 (2.0.54?). Sarge has a
>> mod_perl2 package but it's based on a late 2.0RC, though it is
>> post-rename, IIRC.
>
Wouldn't it be better to parse responses on BigIPs and replace 'http'
with 'https' if redirect is detected? I have no idea how to do this, though.
In your BigIPs Apache httpd.conf you might try:
# bounce to https only)
ServerName www.mywebsite.com
Redirectpermanent / https://www.myw
That's not entirely true. Debian Sarge (stable) and Ubuntu Hoary both
include packages for Apache 1.3.33 and Apache2 (2.0.54?). Sarge has a
mod_perl2 package but it's based on a late 2.0RC, though it is
post-rename, IIRC.
Actually, the Debian Stable aka Sarge has 1.999.21-1 which is
PRE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Justin Luster wrote:
> Thanks for your reply.
>
> But why get into all of this confusion when:
>
> print "Content-type: text/html\r\n\r\n"
>
> just works?
>
> Why would I want to use:
>
> $request = Apache2::RequestUtil->request();
>
If the on
26 matches
Mail list logo