Re: Mod_Perl2 w/mod_proxy/mod_rewrite

2005-10-01 Thread Jonathan Steffan
The rewrite rule is different. Something like: RewriteRule ^(*.)/(*.)/(*.) http://localhost:8080/perl-bb/script.pl?a=$1&b=$2&c=$3 [P] However, I worked around the issue and used a ProxyPass to pass the request to the backend and _then_ do the rewrite. The handler is also different. -Jon P

compressing content

2005-10-01 Thread Octavian Rasnita
Hi, I have read the following in O'Reilly's "Practical mod_perl": To compress only outgoing static files, you can look at the mod_gzip and mod_deflate modules for Apache. I have asked on Apache's users mailing list, and they said that mod_deflate can compress dynamic content also. Why is it sug

Re: compressing content

2005-10-01 Thread Geoffrey Young
> Why is it suggested to use the following method for compressing the content > when using mod_perl? > > SetHandler perl-script > PerlHandler Apache::OutputChain Apache::GzipChain Apache::PassFile > that's information from something like 1998. for apache 1.3 it's probably better to use Apache:

Looking for good MP2 reference material

2005-10-01 Thread Boysenberry Payne
Anyone know of some good apache2 mp2 related reading material that I could purchase for more up to date info than the stuff I'm getting from my old O' Reilly books? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com

Re: Looking for good MP2 reference material

2005-10-01 Thread Fred Moyer
On Sat, 1 Oct 2005 10:50 am, Boysenberry Payne wrote: Anyone know of some good apache2 mp2 related reading material that I could purchase for more up to date info than the stuff I'm getting from my old O' Reilly books? http://perl.apache.org/docs/2.0/index.html is free. Thanks, Boysenberry

Re: compressing content

2005-10-01 Thread Alexander Charbonnet
On Saturday 01 October 2005 10:04 am, Geoffrey Young wrote: > > Wouldn't be easier to use mod_deflate? > > yes, provided you're using apache 2.0. > mod_deflate doesn't support partial decompression, though, so rflushes stop working. That's the only disadvantage I can think of.

Setting a module to handle the requests to /

2005-10-01 Thread Octavian Rasnita
Hi, Is it possible to configure httpd.conf in such a way that when the users request the / directory, that module will handle it, but if the users request for a static file like /style.css for example, that file is served? I have tried: SetHandler perl-script PerlResponseHandler Foo::Bar If t

Re: Setting a module to handle the requests to /

2005-10-01 Thread Frank Wiles
On Sun, 2 Oct 2005 02:20:22 +0200 "Octavian Rasnita" <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible to configure httpd.conf in such a way that when the > users request the / directory, that module will handle it, but if the > users request for a static file like /style.css for example, that

Re: redirecting

2005-10-01 Thread Michael Hall
Try simply: $r->headers_out->set(Location => 'to-URI'); return Apache2::Const::REDIRECT; The status of 302 is set automatically and my browsers reflect the new address. apache sends: HTTP/1.1 302 Found Date: Sun, 02 Oct 2005 06:00:12 GMT Server: Apache Location: to-URI Content-Length: 290 Conten