Re: Is it possible to create a file bucket?

2005-09-16 Thread Nikolay Ananiev
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

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
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

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
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

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
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

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
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,

RE: Do I need Apache2::RequestUtil::request( )?

2005-09-16 Thread Justin Luster
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

Re: Code Refs

2005-09-16 Thread Jeff
> 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

Re: Code Refs

2005-09-16 Thread Damyan Ivanov
-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 ...

Re: Code Refs [OT]

2005-09-16 Thread John ORourke
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

Re: Code Refs

2005-09-16 Thread Anthony Gardner
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

Re: Code Refs

2005-09-16 Thread John ORourke
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

Code Refs

2005-09-16 Thread Anthony Gardner
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

Re: Sth I don't understand about pnotes

2005-09-16 Thread Torsten Foertsch
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

Re: Sth I don't understand about pnotes

2005-09-16 Thread Anthony Gardner
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 >

Re: Sth I don't understand about pnotes

2005-09-16 Thread Damyan Ivanov
-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

Re: [mp2] $| doesn't work with mod_perl

2005-09-16 Thread pradeep kumar
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

Re: Masquerading requests as HTTPS

2005-09-16 Thread Carl Johnstone
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

Installing Apache 1.3.x with mod_accel and mod_deflate

2005-09-16 Thread Philip Mak
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

Re: Sth I don't understand about pnotes

2005-09-16 Thread Carl Johnstone
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

Re: [PATCH] Apache2::SizeLimit + Linux::Smaps

2005-09-16 Thread Torsten Foertsch
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

Sth I don't understand about pnotes

2005-09-16 Thread Anthony Gardner
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 ..

Re: Masquerading requests as HTTPS

2005-09-16 Thread Torsten Foertsch
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

Re: *nix distro compatibility (was Re: survey)

2005-09-16 Thread Damyan Ivanov
-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. >

Re: Masquerading requests as HTTPS

2005-09-16 Thread Jeff
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

Re: *nix distro compatibility (was Re: survey)

2005-09-16 Thread Jeff
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

Re: Do I need Apache2::RequestUtil::request( )?

2005-09-16 Thread Tom Schindl
-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