Dear All,
I want to write a handler, function : log client request file size.
My code can't work:
Apache Config file
Location /test/
SetHandler perl-script
PerlLogHandler My::Test
Options ExecCGI
/Location
My::Test
package My::Test;
sub handler {
my $r = shift;
$r-send_http_header;
--
mod_perl digest
June 17, 2001 - June 23, 2001
--
Recent happenings in the mod_perl world...
Features
Islandman [EMAIL PROTECTED] said something to this effect on 06/26/2001:
The small code segment below will get the contents of a web page using a
perl script. The site I want to access wants a cookie sent as well.
There is a cookie for this site is in my ~/.netscape/cookies file. How
do I
Geoffrey Young [EMAIL PROTECTED] said something to this effect on 06/26/2001:
I did some more digging...
it seems that any request that is served by the default Apache content
handler is ok - only those that are processed by mod_perl (well, anything
that isn't the default) seem to be
-Original Message-
From: darren chamberlain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 8:28 AM
To: '[EMAIL PROTECTED]'
Subject: Re: missing mtime in request rec?
[snip]
Add a use Apache::File; to the top of the module. See p 492 of
the Eagle book; mtime is one
Dear All,
I want to write a handler, function : log client request file size.
My code can't work:
Apache Config file
Location /test/
SetHandler perl-script
PerlLogHandler My::Test
Options ExecCGI
/Location
My::Test
package My::Test;
sub handler {
my $r = shift;
$r-send_http_header;
I found it, quite be accident in the Eagle Book
Lost the page number, but it was in Chapter 4.
There's some discussion in the last paragraph of page 86.
anybody got a more specific pointer to help us fuzzy searchers
find 'how to have mod_perl handle directory requests'?
Hopefully
I thought this might be of interest to some of the people who are fiddling
with widgets at the moment ;-)
--
Matt/
/||** Founder and CTO ** ** http://axkit.com/ **
//||** AxKit.com Ltd ** ** XML Application Serving **
// ||** http://axkit.org ** ** XSLT,
Mod_perl version: 1.25_01-dev
Perl version: 5.6.1
Apache Version: 1.3.20
OS:NT
I am in the apache book and I am doing some hacking. In my startup.pl file,
I put 'use CG qw(:standard); along with some other modules.
Anyway, then I typed that little dittie below, and
On Wed, 27 Jun 2001, Issac Goldstand wrote:
Actually, I believe that it helps to do a use cgi qw(-compile: all) as this
will pre-compile the entire module (which makes it go a bit faster for it's
first request).
As Issac correctly said, but usually you don't want :all, but only the tag
On Wed, Jun 27, 2001 at 08:52:10AM -0500, Adekunle Olonoh wrote:
I found it, quite be accident in the Eagle Book
Lost the page number, but it was in Chapter 4.
There's some discussion in the last paragraph of page 86.
anybody got a more specific pointer to help us fuzzy
Purcell, Scott [EMAIL PROTECTED] said something to this effect on 06/27/2001:
Mod_perl version: 1.25_01-dev
Perl version: 5.6.1
Apache Version: 1.3.20
OS:NT
I am in the apache book and I am doing some hacking. In my startup.pl file,
I put 'use CG
On Wed, 27 Jun 2001, will trillich wrote:
okay -- but if you want some of your site to be indexed by the
standard mod_autoindex, yet have mod_perl intervene for certain
subtrees, you'll find that mod_perl never gets a chance at it
because the mod_autoindex gadjets catch it at an earlier
will trillich [EMAIL PROTECTED] said something to this effect on 06/27/2001:
okay -- but if you want some of your site to be indexed by the
standard mod_autoindex, yet have mod_perl intervene for certain
subtrees, you'll find that mod_perl never gets a chance at it
because the mod_autoindex
Philip Mak [EMAIL PROTECTED] said something to this effect on 06/27/2001:
On Wed, 27 Jun 2001, will trillich wrote:
okay -- but if you want some of your site to be indexed by the
standard mod_autoindex, yet have mod_perl intervene for certain
subtrees, you'll find that mod_perl never gets
On Wed, 27 Jun 2001, Purcell, Scott wrote:
Hello Stas,
I think somehow my question got out of sync with the answer. My question
was, if I do a use cgi qw(-compile: all) in my startup (which I have done),
do I still need to put a use cgi in each of my .pl files? I have read
through the docs,
On Tue, Jun 26, 2001 at 01:06:06AM -0400, Brooklyn Linux Solutions CEO wrote:
I've given Filter and SSI a shot according to the perldocs.
It didn't work. I stated to hhack on some of the problems, which first involved
in the make install depositing them in the wrong diretory, and then
On Mon, Jun 25, 2001 at 04:54:59PM -0700, Rob Bloodgood wrote:
maybe storing 'last-access-time' on the server, instead of in
the client-side, via cookie, would solve this snafu?
But if you want to give out a new cookie on every request ?
How would you prevent them from copying or
me, on the other hand, i don't see the problem with
on incoming request
if has-cookie 'session'
{
update serverside 'accesstime' for session[this] to NOW
Oh yeah? HOW???
if not-modified-since
I have begun development on a new project and I am using Apache on NT with
mod_perl. I have created a lot of modules and I am using them in my code.
The problem is that as I continue to develop, some modules keep changing,
and I am getting tired of restarting the server. I have read the mod_perl
To all:
I am putting together a site utilizing stacked handlers where the
first of the modules uses the push_handlers call in order to dynamically
choose a processing module. This 'pushed' handler then goes about
processing the request filling up the %ENV with information for the
next in
-Original Message-
From: Terry Moran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 3:39 PM
To: [EMAIL PROTECTED]
Subject: %ENV push_handlers
To all:
I am putting together a site utilizing stacked handlers where the
first of the modules uses the
I don't know where to report apache::session bug , because I sent to the
author , I didn't get any reply yet
Could you Please share your bug info with us? I am using Apache::Session
now
and having troubles with it...
Thank you!
Laurie
-Original Message-
From: Iwan Garnadi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 5:50 PM
To: [EMAIL PROTECTED]
Subject: where to report
On Thu, 28 Jun 2001, Iwan Garnadi wrote:
I don't know where to report apache::session bug , because I sent to the
author , I didn't get any reply yet
Maybe you will have to wait more than four days...
-jwb
Most of the time it is really bad to email open source authors directly.
They released a piece of software out of kindness. But hey, it's open
source and they can't hold up the entire world of support like an Atlas, 24x7.
That's the job of open forums like this. So the author continues time to
well, something isn't quite right... you aren't by chance using method
handlers are you?
at this point, you may want to post (some) code and/or the relevant snippet
from your httpd.conf.
using push_handlers with pnotes has never been a problem for me
# from some handler somewhere
Test env:
Apache/1.3.20 (Win32) mod_perl/1.25_01-dev mod_ssl/2.8.4 OpenSSL/0.9.6a
I just tried this to stop myself running any scripts from /cgi-bin, but it does not
stop me. Yeah, yeah, I restart the server after
every patch to httpd.conf.
Directory /cgi-bin
Options Indexes FollowSymLinks
I want to get the byte amounts that sent to the client via Apache, so I write the
following code
#!/usr/bin/perl
use strict;
package Apache::GetByte;
use Apache::Constants qw(:response);
use Apache ();
sub handler{
my $r = shift;
my $byte=$r-bytes_sent;
warn BYTE = $byte
Use Location for paths respective to the server root.
Location /cgi-bin
...
/Location
- Original Message -
From: Ron Savage [EMAIL PROTECTED]
To: mod_perl [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 9:23 PM
Subject: Q: How to I secure /cgi-bin?
Test env:
Apache/1.3.20
30 matches
Mail list logo