Apache::RequestNotes and sharing information

2001-10-19 Thread Chui G. Tey
I am using RequestNotes with PerlAccessHandler and a PerlHandler. When the browser connects for the first time, The PerlAccessHandler sets a session_based cookie, using TIEHASH $r-pnotes("COOKIES")-{'SESSION_ID'} = $session{_session_id}; And the PerlHandler retrieves the session_id using

Re: Apache::RequestNotes and sharing information

2001-10-19 Thread Gerald Richter
The PerlAccessHandler sets a session_based cookie, using TIEHASH $r-pnotes(COOKIES)-{'SESSION_ID'} = $session{_session_id}; Unless you have already stored a hash ref in pnotes with key COOKIES, you must write: $r-pnotes(COOKIES, {'SESSION_ID' = $session{_session_id}}) ; this stores a new hash

Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Greg Cope
Andrew Ho wrote: Hello, I checked the list archives and it didn't look like this had been posted yet. For those of you who haven't seen it yet... a great read on perl.com about the Apache/mod_perl setup at eToys, co-authored by our own mod_perl regular contributer Perrin Harkins.

RE: Problem using mod_perl-1.26 with perl 5.6.1 and XML::Parser

2001-10-19 Thread Matt Sergeant
-Original Message- From: Matthew H. Gerlach [mailto:[EMAIL PROTECTED]] Now that I had something reproducible, I continued. I rebuilt using Apache 1.3.22 just like above, and everything continued to work. I upgraded to XML::Parser-2.30, and things continued to work. It was only

rookie's question regarding dynamic html pages

2001-10-19 Thread Xavier Merlin
Hello, I am a rookie in this, so I am probably asking trivial things here. My current environment is: Windows NT 4.0 SP 5, Apache 1.3.9 Active state perl 522 I have written a perl monitor which writes simple static html pages having the format html pre multiple ascii lines (output

Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Gunther Birznieks
Yeah we really enjoyed it over here. I think it's really excellent to get great advocacy articles about Perl and surrounding products (mod_perl, TT, etc) powering real businesses with real high powered needs out there like this one. :) At 04:40 PM 10/19/2001, Greg Cope wrote: Andrew Ho

Re: rookie's question regarding dynamic html pages

2001-10-19 Thread Ged Haywood
EaOn 19 Oct 2001, Xavier Merlin wrote: I would like to make those pages dynamic Maybe modperl can help. What do I need ? The Eagle Book: Writing Apache Modules with Perl and C, ISBN 1-56592-567-X, by Lincoln Stein and Doug MacEachern. It is available from O'Reilley

RE: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Geoffrey Young
-Original Message- From: Gunther Birznieks [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 6:47 AM To: mod_perl List Cc: Template Toolkit List Subject: Re: Excellent article on Apache/mod_perl at eToys Yeah we really enjoyed it over here. I think it's really

Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Perrin Harkins
Thanks to all for the kind words. This article actually went up a little bit before it was supposed to, and there should be a revision going up soon with some grammatical fixes and a set of graphics to illustrate parts of it. I'll post a follow-up when that happens in case anyone wants to go and

Re: [Templates] Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Drew Taylor
What I found most interesting was the detail of the extensive caching which was implemented to survive the seasonal rush. I look forward to working on a project one day that is big enough to warrant such a system. All in all, a most excellent and informative read. Thanks again for everything

RE: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Clinton Gormley
Thanks to all for the kind words. This article actually went up a little bit before it was supposed to, and there should be a revision going up soon with some grammatical fixes and a set of graphics to illustrate parts of it. I'll post a follow-up when that happens in case anyone

RE: [Templates] Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Joe Breeden
I work in a predominately M$ shop. AS a matter of fact, I am one of only two Perl/mod_perl programmers in a development department with 25 other programmers. Sometimes it feels like we are working in a vacuum. This list and articles like the eToys article along with the overwhelmingly superior

Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Perrin Harkins
What I'd love to see is the avg spec and numbers of machines in each section. So how many proxy, mod_perl and search servers were required to give the phenomenal performance you managed to achieve. Well, this was a long time ago (I wrote the article over a year ago), and I don't remember

Selectively writing to the access log

2001-10-19 Thread Rodney Broom
I'm wanting to look at the request and optionally change what gets written to the access log. However, I only see methods for writing to the error log. I think I need to do this inside the request because I'm piping things with TransferLog and don't want to interupt that. But I don't mind

Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Tom Servo
If memory serves, I think we had something like 20-30 proxy servers and I think, at the end, we had w21 through w112 for app servers, so something like 92 app servers. I don't remember how many search boxes though. Thanks for the article Perrin, I didn't know half of what you, Ollie, Chris,

Re: Selectively writing to the access log

2001-10-19 Thread Rob Nagler
I only see methods for writing to the error log. I don't think you can change the access log format, but you can modify the values. For example, you can set $c-user and $c-remote_ip. Rob

Location, SetHandler and Aliases in httpd.conf

2001-10-19 Thread Peter Beardsley
Hi, sorry if this is slightly OT but I need some help getting my apache config straightened out. I want to set up Apache so that requests to the document root are handled by mod_perl, but requests to a special images directory are not handled by mod_perl. Currently I have it set up like

Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Keith G. Murphy
Andrew Ho wrote: Hello, I checked the list archives and it didn't look like this had been posted yet. For those of you who haven't seen it yet... a great read on perl.com about the Apache/mod_perl setup at eToys, co-authored by our own mod_perl regular contributer Perrin Harkins.

[OT] Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Thomas Klausner
Hi! On Fri, Oct 19, 2001 at 09:59:18AM -0400, Drew Taylor wrote: What I found most interesting was the detail of the extensive caching which was implemented to survive the seasonal rush. Wasn't this seasonal rush at least partly caused by the so-called toywar (www.toywar.com) between

Re: [OT] Re: Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Perrin Harkins
Wasn't this seasonal rush at least partly caused by the so-called toywar (www.toywar.com) between eToys.com (the online retailer) and etoy.com (the art group)? There were a lot of DoS attacks (and some even uglier, nastier ones) in 1999 as a result of that. Most of that was dealt with

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
From: Rob Nagler [EMAIL PROTECTED] I don't think you can change the access log format, but you can modify the values. For example, you can set $c-user and $c-remote_ip. Thanks Rob, this is helpful and it works. The value I'm wanting to change is in r-the_request, but passing a value to

RE: Selectively writing to the access log

2001-10-19 Thread Geoffrey Young
-Original Message- From: Rodney Broom [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 3:14 PM To: [EMAIL PROTECTED] Subject: Re: Selectively writing to the access log From: Rob Nagler [EMAIL PROTECTED] I don't think you can change the access log format, but you

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
From: Geoffrey Young [EMAIL PROTECTED] are you on an old version of mod_perl? from Changes: $r-the_request can now be modified Good catch, yes I was using 1.19. I've moved a machine with 1.26 and r-the_request($string) no longer fails. However, with 1.26 none of changes I'm making to the

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
- Original Message - From: Mark Doyle [EMAIL PROTECTED] I missed your original post, but maybe this will help. What about creating a new log using CustomLog and tying it to an environment variable and only setting this in the requests you want to log? I do this to log subscriber

Re: Selectively writing to the access log

2001-10-19 Thread Rob Nagler
Usage: Apache::the_request(r) This means the sub Apache::the_request takes a single parameter, i.e. you can't modify the_request. You can modify the method and uri. You can't modify the protocol (HTTP/1.0). If you change method or uri, it doesn't change the_request. You can change your

Re: Selectively writing to the access log

2001-10-19 Thread Mark Doyle
How about adding a custom header with the format you want and then logging that with a custom log format? Cheers, Mark On Friday, October 19, 2001, at 04:09 PM, Rodney Broom wrote: My ultimate goal is this: I have a silly redirector script that acts as a logging hook for folks clicking

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
From: Mark Doyle [EMAIL PROTECTED] How about adding a custom header with the format you want and then logging that with a custom log format? I think I've found an acceptable method. I've got a log handler like this: my $req = $r-the_request; if ($r-uri =~ /$something_interesting/) {

Re: Problem using mod_perl-1.26 with perl 5.6.1 and XML::Parser

2001-10-19 Thread Matthew H. Gerlach
Just to follow up. I took your advice on building building modperl. My actual command was as follows: perl Makefile.PL \ EVERYTHING=1 \ USE_APACI=1 \ APACHE_PREFIX=/lsurf/wohg \ APACHE_SRC=../$APACHE/src \ DO_HTTP=1 \ APACI_ARGS=--enable-rule=expat --enable-module=so

stacked handlers return vals

2001-10-19 Thread Mark Maunder
Hi, If I'm using stacked handlers, what should I return if I dont want the next handler in line to run because I've returned all required content to the client? (the eagle book says anything other than OK, DECLINED or DONE, but what's the appropriate return val that wont cause the client to

Re: [OT] Excellent article on Apache/mod_perl at eToys

2001-10-19 Thread Jeremy Howard
By the way, I noticed he documented still another gotcha due to a sneaky closure. Does anyone know off-hand whether the Perl 6 folks plan to change the closure syntax so they don't sneak into your code this way? Closures, references, et al are being thoroughly revised, such that there will

rookie question

2001-10-19 Thread Xavier Merlin
Hello, I am completely new to the issue. My question is probably very straightforward but maybe you can help me out. I have made a monitor in perl which periodically overwrites static pages containing the output of various commands. The html pages are consisting of: html pre multiple ascii

@INC

2001-10-19 Thread Plows, Sean (London)
How can I set this as my cgi's can't locate my libs? Regards, Sean Plows

Re: mod_perl-1.2.6 for Cygwin 1.x (using apache_1.3.22, perl-5.6.1)

2001-10-19 Thread Charles Wilson
Stipe Tolj wrote: What is the problem with ld2? I'm using a patched version of ld which supports --auto-import. the official cygwin ld now supports --auto-import (and has since August 02.) --Chuck

Re: Problem using mod_perl-1.26 with perl 5.6.1 and XML::Parser

2001-10-19 Thread clayton cottingham
Matthew H. Gerlach wrote: Just to follow up. I took your advice on building building modperl. My actual command was as follows: perl Makefile.PL \ EVERYTHING=1 \ USE_APACI=1 \ APACHE_PREFIX=/lsurf/wohg \ APACHE_SRC=../$APACHE/src \ DO_HTTP=1 \

cvs commit: modperl-2.0/ModPerl-Registry/t/conf extra.conf.in

2001-10-19 Thread stas
stas01/10/18 23:46:25 Modified:ModPerl-Registry/t/conf extra.conf.in Log: - prepare the configuration for a set of /same_interp aliases and registry configurations - some slight reorg of the conf file Revision ChangesPath 1.2 +73 -15

cvs commit: modperl-2.0/src/modules/perl modperl_handler.h modperl_perl_global.h modperl_types.h

2001-10-19 Thread dougm
dougm 01/10/19 09:40:45 Modified:src/modules/perl modperl_handler.h modperl_perl_global.h modperl_types.h Log: get rid of hpux warnings: Dangling comma not allowed by ANSI standard, ignored. Revision ChangesPath 1.8 +1 -1

cvs commit: modperl-2.0/ModPerl-Registry/lib/ModPerl RegistryCooker.pm

2001-10-19 Thread stas
stas01/10/19 03:37:20 Modified:ModPerl-Registry/lib/ModPerl RegistryCooker.pm Log: - module cleanup, moving XXX/META's into the todo list Revision ChangesPath 1.4 +35 -75modperl-2.0/ModPerl-Registry/lib/ModPerl/RegistryCooker.pm Index:

cvs commit: modperl-2.0/ModPerl-Registry TODO

2001-10-19 Thread stas
stas01/10/19 03:43:25 Modified:ModPerl-Registry TODO Log: - summarize things that have to be done for Registry Revision ChangesPath 1.2 +44 -26modperl-2.0/ModPerl-Registry/TODO Index: TODO

cvs commit: modperl-2.0/src/modules/perl modperl_time.h

2001-10-19 Thread stas
stas01/10/19 20:35:54 Modified:src/modules/perl modperl_time.h Log: - handle platforms which don't have HZ constant defined Revision ChangesPath 1.2 +8 -2 modperl-2.0/src/modules/perl/modperl_time.h Index: modperl_time.h