Makes sense, will look over the docs again.
Thanks,
Stathy Touloumis [EMAIL PROTECTED] wrote:
For some reason the call to 'push_handlers' does not seem to register the
'handler' with mod_perl correctly when used in the code below. It seems
that only a few initial requests will successfully
Hello,
I have currently added cutom apache directives using
'Apache::ModuleConfig,Apache::ExtUtils' and have come across some strange
behavior when trying to use a custom mod_perl handler that worked fine
before. I get this error :
[Fri Jan 4 11:39:25 2002] [error] Uncaught exception from user
Apache 1.3.22
mod_perl 1.26
I have noticed some strange behavior when attempting to stack handlers below
the 'ChildInit' phase. This code executes fine when placed in a server
initialization script:
Apache-push_handlers( PerlChildInitHandler= \My::Child::handler );
When using the code below in
Has anyone encountered issues when setting 'KeepAlive On' in there apache
conf? After an initial request it seems that none of my handlers are called
and the apache handlers take control. After a period of time the
appropriate handlers seem to operate. If I reload quickly the same issue
It seems to stop occurring if I set MaxRequestPerChild to One as well.
Thanks,
Perhaps something along the lines of :
$r-push_handlers(
PerlHandler = sub {
my $r = shift;
my $return = $handle-handler( $r );
if ( $return == Apache::Constants::OK ) {
??
}
}
);
-Original Message-
From: Alexei V. Alexandrov
http://www.perl.com/pub/a/2001/10/17/etoys.html
Yea, mod_perl really sucks ; )
I have even worked on poorly architectured and coded sites which still
performed fairly well.
Recently I did a substantial project for a client in using
mod_perl. That client is happy with the work, but an
He he : ) I think this discussion is being miscommunicated (if that is a
relevant word). I do not want authorization to be performed in the typical
manner. Perhaps I want the information from a form submit or a cookie. I
understand how the Apache authentication configuration works but I want
What I have down is moved out specific auth handler down the chain into the
'fixup' state but it would be much nicer (and ituitive) to place it in the
appropriate position.
On Tue, 2001-12-11 at 21:00, Stathy Touloumis wrote:
Actually, I DON'T want the browser to prompt for a
username/pass
Right, this is fairly obvious but we are trying to prevent apache from
sending the 'login' headers if successful authorization does not occur. It
seems to me that to do this the handler will need to be moved up or down the
chain which can be unintuitive.
Thanks,
Has anybody got an idea how
Hi,
I was wondering if anyone had experienced some funky behavior when 'pushing'
a content handler (PerlHandler). The initial request makes the appropriate
content handler call but upon subsequent requests the content handler
routine does not get called.
This is a snippet of code from a
]]
Sent: Monday, December 10, 2001 7:16 PM
To: Stathy Touloumis
Cc: mod_perl List
Subject: RE: Auth Handlers
On Mon, 10 Dec 2001, Stathy Touloumis wrote:
Directory /home/stathy/apache/html
AuthName Login
AuthType Base::Session::Handler
require valid-user
Message-
From: Rob Bloodgood [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 12:54 PM
To: Stathy Touloumis
Cc: mod_perl
Subject: RE: Auth Handlers
: ) No problem, I guess I am unsure if this is the proper way
to setup an
Access, Authen, Authz handler. When I use
I seem to be unable to get my authentication/authorization handler to be
called correctly. I have tried numerous directives and it seems to always
get passed to the standard apache 'authentication' module. I receive this
error :
[Mon Dec 10 13:09:35 2001] [crit] [client 192.168.6.59]
Directory /home/stathy/apache/html
AuthName Login
AuthType Base::Session::Handler
require valid-user
PerlAuthenHandler Base::Session::Handler
/Directory
Send the config?
Or set MaxClients to 1 if you do not have too many developers and/or your
development server doesn't suck ; )
There are 2 realistic solutions to your problem :
1. run a web server for each user ( a good solution in my opinion )
2. wait for Doug to finish up mod_perl 2.0
I know the problem
r to delay accepting new connections during peak times.
My account is a "virtual server"; what this means is that I
have access to
the Apache httpd.conf files and can restart the Apache daemon,
but do not
have the priviledge to bind a program to port 80 (so I can't
put thttpd on
port 80
So, if I understand correctly, the database handle is getting cached
more than you think it should, that's right?
I was unsure where the caching was occurring.
I think MaxRequestsPerChild doesn't actually cut off a connection that
is kept alive (with KeepAlive). Ctrl-N in a browser could
Why don't you setup apache to do proxying?
I have a high traffic website (looks like 200 GB output per month,
something around 10-20 hits per day) hosted on a commercial
service. The service does not limit my bandwidth usage, but they limit the
number of concurrent Apache process
Hello,
One of the developers I currently am working with has found an odd bug that
can be replicated on several workstations. First my configuration :
Apache 1.3.17
mod_perl 1.25
Mason (Ancient)
Apache::DBI .88
Postgres 7
MaxRequestsPerChild 1
KeepAlive on
We have two components that contain
Hello,
One of the developers I currently am working with has found an odd bug that
can be replicated on several workstations. First my configuration :
Apache 1.3.17
mod_perl 1.25
Mason (Ancient)
Apache::DBI .88
Postgres 7
MaxRequestsPerChild 1
KeepAlive on
We have two components that contain
This code does not seem to work whether in a handler or when using a Mason
component. I have tried several variations with different versions of
mod_perl to no avail. Can anyone shed some light?
my $head = $r-headers_out;
$head-set( Location= '/index.html' );
$head-set( Target= '_top' );
Is it possible to access a global configuration directive without using the
request object?
Thanks,
If you want to use a perl function ( Apache::server_root_relative() ) then
you have to use a Perl block.
This might work :
PerlSetEnv SERVER_ROOT \
Perl
Apache::server_root_relative()
/Perl
But this seems so much easier :
Perl
$ENV{'SERVER_ROOT'} = Apache::server_root_relative()
/Perl
Maybe
Probably just never assumed to be used this way. Do not see to much
documentation on using the Symbol table directly. Here is something strange
as well. Try copying a package and then creating an object from it . . .
Really funky
Think I might post this to the p5p list
I actually was nearlly successful in accomplishing some sort of mechanism by
which developer packages can be mapped to a virtual package which the real
package points to (did this make sense?). Anyway, it needed to tap into the
symbol table way too extensively and ran into several problems.
I
Because suexec is build with a predefined path which allows only scripts
underneath that path to run in. You need to find out what the 'docroot' is
and be sure that your script is underneath this path. There are several
other restrictions that need to be done to ensure that cgi's being run
NewPackage will then contain all things in TestPackage
Then you can redefined everything in TestPackage without affecting
anything in NewPackage.
Actually it will, if you were to delete NewPackage, TestPackage would not
contain anything. Modifying 'thingys' in TestPackage would modify
When using Symbol::delete_package to remove a package something odd happens.
Other packages seem to disappear or functions are not available. Has anyone
experienced this before? I am using this with Mason and after using
Symbol::delete_package the Mason handler is no longer available.
I was wondering if anyone has successfully setup a development environment
to allow for multiple development copies of modules used within Mason
components. Also, to have the appropriate changes to the modules shown
within the development environment.
Thanks,
Stathy Touloumis
Coder
if ( eval
30 matches
Mail list logo