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
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
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.
-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
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
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
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
-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
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
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
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
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
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
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
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,
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
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
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.
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
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
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
-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
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
- 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
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
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
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/) {
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
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
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
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
How can I set this as my cgi's can't locate my libs?
Regards,
Sean Plows
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
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 \
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
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
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:
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
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
39 matches
Mail list logo