Re: Section ENV Variables?

2004-02-05 Thread Geoffrey Young
Gary C. New wrote: > Definitely looks like the code I'm after. > > I guess what is unclear to me is how to implement it. it's a PerlTransHandler, so you'd use it from your httpd.conf like this PerlModule My::TransHandler PerlTransHandler My::TransHandler and put your code, My/TransHandler.pm,

Re: Section ENV Variables?

2004-02-05 Thread Gary C. New
Definitely looks like the code I'm after. I guess what is unclear to me is how to implement it. suburbanantihero states that the sections are only configurable on load time. So I would need to bind it as a handler to the ssl virtualhost section. Is this correct? I am not sure how this would

Re: Section ENV Variables?

2004-02-05 Thread Geoffrey Young
> http://domain.tld = DocumentRoot /home/domain.tld/htdocs > > https://secure.provider.tld/secure/domain.tld/ > > URI is parsed for ^/secure/([.]*[\.]+[.]*)/(.*) > > > DocumentRoot is then dynamically replaced with $1 > > > I was trying to use mod_rewrite and mod_vhost_alias to do this, but I

Re: Section ENV Variables?

2004-02-05 Thread suburbanantihero
The sections are just for load time configurations. You want to write a mod_perl handler and bind it only to the under the https virtual host. You can use the handler to parse the uri and then use the $r->sendfile("/newdocumentroot/$file"); --- "Gary C. New" <[EMAIL PROTECTED]> wrote: > Geoff

Re: Section ENV Variables?

2004-02-05 Thread Gary C. New
Geoffrey, My intention is to capture HTTPS requests as they come in, break the URI down, and then dynamically change DocumentRoot, Logs, etc based on whether a given URI meets my set of criteria. Example: http://domain.tld = DocumentRoot /home/domain.tld/htdocs https://secure.provider.tld/sec

Re: Section ENV Variables?

2004-02-05 Thread Geoffrey Young
Gary C. New wrote: > mod_perl = 1.27 > > I am trying to setup a section in my httpd.conf file that will > retrieve the web server's environment variables. I've tried several > methods and all lead me back to the same problem. > > I first tried using PerlPassEnv but could never get any environ

Section ENV Variables?

2004-02-05 Thread Gary C. New
mod_perl = 1.27 I am trying to setup a section in my httpd.conf file that will retrieve the web server's environment variables. I've tried several methods and all lead me back to the same problem. I first tried using PerlPassEnv but could never get any environment variables from it. I also

Re: conference talks

2004-02-05 Thread Larry Leszczynski
Hi Perrin - > Okay, I need a little feedback here on which of these talks I should > submit for conferences this year. I'll cast a vote for the Scalable Websites talk. Despite multiple successful mod_perl deployments at my current company, my mod_perl compatriots and I still fight the perception

Calling perl output filter before Includes filter

2004-02-05 Thread Hamilton, Henrique H
I am using apache2.0.48 and mod perl 1.99_12. I've written a mod perl module as a perl output filter that rewrites image links to point to another server.[example: becomes ] My problem is that my perl module doesn't play well with SSI's . I know if I call the perl module before it's processed by

Passing Data to custom_response

2004-02-05 Thread Michael L. Artz
I was wondering if it was possible to pass data from a handler to a custom_response declared handler within apache2/mod_perl2. I am putting a custom_response on the the HTTP_FORBIDDEN return code to direct the user to a login page (custom_response(Apache::HTTP_FORBIDDEN, 'login.pl')), so if th

Re: Problem installing libapreq on Win2k

2004-02-05 Thread Randy Kobes
On Thu, 5 Feb 2004, Maurice Height wrote: > The installation of libapreq2 on my machine failed when using Activestate's > ppm utility. > My setup is Win2K, ActivePerl 5.8.2 build 808 and Apache v2.0.48 which is > installed under dir D:\Apache\Apache2 > The installation of mod_perl2 1.99_12 from h

RE: Problem installing libapreq on Win2k

2004-02-05 Thread Will Stranathan
From: "Maurice Height" <[EMAIL PROTECTED]> Subject: Problem installing libapreq on Win2k The installation of libapreq2 on my machine failed when using Activestate's ppm utility. My setup is Win2K, ActivePerl 5.8.2 build 808 and Apache v2.0.48 which is installed under dir D:\Apache\Apache2 The way I

Re: conference talks

2004-02-05 Thread Perrin Harkins
On Thu, 2004-02-05 at 09:26, Charlie Smith wrote: > Sounds great. I'd be very interested in how to scale PERL. What are some of > the large sites that do this, for example? I have to see who is willing to talk to me about it, but I will definitely be discussing Ticketmaster.com and CitySearch.co

Re: conference talks

2004-02-05 Thread Charlie Smith
Sounds great. I'd be very interested in how to scale PERL. What are some of the large sites that do this, for example? >>> "Perrin Harkins" 2/4/2004 10:06:31 AM >>> Thanks to everyone who sent feedback. Looks like I'll be submitting a talk on building scalable sites! And yes, I will certainl

Re: conference talks

2004-02-05 Thread Charlie Smith
Sounds great. I'd be very interested in how to scale PERL. What are some of the large sites that do this, for example? >>> "Perrin Harkins" <[EMAIL PROTECTED]> 2/4/2004 10:06:31 AM >>> Thanks to everyone who sent feedback. Looks like I'll be submitting a talk on building scalable sites! And ye

Re: [mp1] Serving cached content first, then refreshing

2004-02-05 Thread Perrin Harkins
On Thu, 2004-02-05 at 08:12, Jean-Michel Hiver wrote: > However I am not sure how to go about it... Maybe with a cleanup handler > which would recompute the content and refresh the cache? Bingo! > Then I have another problem. What if another cleanup handler closed the > database connection before

Problem installing libapreq on Win2k

2004-02-05 Thread Maurice Height
The installation of libapreq2 on my machine failed when using Activestate's ppm utility. My setup is Win2K, ActivePerl 5.8.2 build 808 and Apache v2.0.48 which is installed under dir D:\Apache\Apache2 The installation of mod_perl2 1.99_12 from http://theoryx5.uwinnipeg.ca using ppm was successful.

[mp1] Serving cached content first, then refreshing

2004-02-05 Thread Jean-Michel Hiver
Hi List, Thanks to help on the list I have writtent the CPAN module MKDoc::Apache_Cache [1]. At the moment when a cached document has expired from the cache, the module does the following: * refresh the cache * send the newly cached content I would like make an option so that the reverse cou

Problem installing libapreq on Win2k

2004-02-05 Thread Maurice Height
The installation of libapreq2 on my machine failed when using Activestate's ppm utility. My setup is Win2K, ActivePerl 5.8.2 build 808 and Apache v2.0.48 which is installed under dir D:\Apache\Apache2 The installation of mod_perl2 1.99_12 from http://theoryx5.uwinnipeg.ca using ppm was successful.

Logging via rotatelog in a handler -- wise?

2004-02-05 Thread Tofu Optimist
Hi -- I am a new user of MP2. Pardon my basic questions. Here's my situation: My Apache generates 4 sets of logs. Three of them are generated by Apache directly: access, error, and a custom log tracking access for certain file types. The fourth is made by a MP2 handler dealing with redirects