Fw: How to get cookie from a mod_perl proxy

2001-05-16 Thread ktgoh
> Hi, I am writing a perl_mod script for apache that will act as a proxy to > intercept all requests that comes through my proxy. I want to set a cookie in > the client's browser (to store a session ID) and retrieve it each time the > user make a request to other URL (assuming he has set my pro

Re: Global variables

2001-05-16 Thread will trillich
On Wed, May 16, 2001 at 07:13:22AM +0200, Bjoern wrote: > i want to define a global variable which is also present in subroutines > coded in > extra perl modules. > I tried this "our $test;" but amod_perl tells me following "Global > symbol "$test" requires explicit package name" I know, this is

Address already in use: make_sock: could not bind to port [...]

2001-05-16 Thread Niels van Tongeren
Hello, I have the same problem some other modperl-visitors have, namely the error "(48)Address already in use: make_sock: could not bind to port 8093", when having started a long running external program and stopping and starting the webserver. I have read the "Performance Tuning"-article on http

Re: Address already in use: make_sock: could not bind to port [...]

2001-05-16 Thread Stas Bekman
On Wed, 16 May 2001, Niels van Tongeren wrote: > Hello, > > I have the same problem some other modperl-visitors have, namely the error > "(48)Address already in use: make_sock: could not bind to port 8093", when > having started a long running external program and stopping and starting the > webs

Re: Authorization question and subdirectories

2001-05-16 Thread Chris Strom
Mike Cameron <[EMAIL PROTECTED]> writes: > Is it possible to have the same PerlAuthzHandler use different require's > > on a subdirectory once a user has been authorized for a parent > directory? Here is what i would like to be acle to do: > > > SetHandler perl-script > AuthType MyAuth > AuthN

Re: Authorization question and subdirectories

2001-05-16 Thread sterling
On 16 May 2001, Chris Strom wrote: > Mike Cameron <[EMAIL PROTECTED]> writes: > > > Is it possible to have the same PerlAuthzHandler use different require's > > > > on a subdirectory once a user has been authorized for a parent > > directory? Here is what i would like to be acle to do: > > > >

Re: Authorization question and subdirectories

2001-05-16 Thread Mike Cameron
I got it working alright with the directive as follows SetHandler perl-script AuthType Consignline AuthName NONE PerlAuthenHandler Consignline::Shop::User PerlAuthzHandler Consignline::Shop::User->authorize require valid-user PerlHandler Consignline::Shop PerlSetV

Re: Authorization question and subdirectories

2001-05-16 Thread Chris Strom
sterling <[EMAIL PROTECTED]> writes: > On 16 May 2001, Chris Strom wrote: > > > Mike Cameron <[EMAIL PROTECTED]> writes: > > > > > Is it possible to have the same PerlAuthzHandler use different require's > > > > > > on a subdirectory once a user has been authorized for a parent > > > directory

Known bugs with so's and mod_perl 1.21??

2001-05-16 Thread Rafiq Ismail
I'm getting a rather odd situation on one of our boxes: spec Sun OS 5.6/solaris2.6 Apache 1.3.11 mod_perl 1.2.1 We've got a sitation where mod_perl intensive pages seem to severely knock our idle time - which in it self probably isn't bad, however is it also reflected by noticable latency o

[Fwd: Network connection lost while uploading file (Multipart request)]

2001-05-16 Thread suresh
Hi, Server info : 1. IIS websever with sevexec engine or 2. Tomcat , apache combination The network connection was lost during uploading a file of size more than 64 kb and trying to redirect or forward without reading the data in the Http request (multipart form / post data). The fix i tr

Re: authorization and mod_perl

2001-05-16 Thread Vivek Khera
> "JS" == John Saylor <[EMAIL PROTECTED]> writes: JS> consists of handlers and aliases. And the authentication handler isn't JS> working with directives. JS> JS> AuthName"foo control" JS> AuthTypeBasic JS> PerlAuthenHandlerApache::OK I don't think location takes a glob p

Re: Pnotes not working

2001-05-16 Thread Vivek Khera
> "MC" == Mike Cameron <[EMAIL PROTECTED]> writes: MC> package My::Main; MC> sub handler{ MC> my $r = new Apache::Request(shift); MC> my $var = $r->pnotes("MY_HANDLER"); MC> $r->log_error("This is var $var->[0]"); MC> } Try this: my $var = ($r->prev || $r)->pnotes("MY_HANDLER"); You

Re: authorization and mod_perl

2001-05-16 Thread barries
On Wed, May 16, 2001 at 12:07:28PM -0400, Vivek Khera wrote: > > I don't think location takes a glob pattern. A nit: it can. , and can all take shell-like globs using ?, *, and []/[!...]/[^...] operators, looks like. No equivalent to {a,b,c} alternation, AFAICS. - Barrie

Re: Pnotes not working

2001-05-16 Thread Mike Cameron
Thank you very much Vivek. That was exactly what was happening. I did manage to figure it out eventually. Thanks for your help. Mike Vivek Khera wrote: > > "MC" == Mike Cameron <[EMAIL PROTECTED]> writes: > > MC> package My::Main; > MC> sub handler{ > MC> my $r = new Apache::Request(sh

Any way to make StatINC work for imported modules?

2001-05-16 Thread Thomas K. Burkholder
Hi, I'm using mod_perl without the registry, because it seems a bit faster and, well, more elegant. This means, in essence, that the configuration is: PerlInitHandler Apache::StatINC PerlSetEnv PERL5LIB /home/burkhold/perl/local/share/perl/5.6.0 SetHandler 'perl-script' PerlHandler '

Re: Any way to make StatINC work for imported modules?

2001-05-16 Thread Thomas K. Burkholder
Whoops. Pilot error. Cancel that. Sorry. //Thomas "Thomas K. Burkholder" wrote: > Hi, > > I'm using mod_perl without the registry, because it seems a bit faster > and, well, more elegant. This means, in essence, that the configuration > is: > > PerlInitHandler Apache::StatINC > PerlSetEnv P

NameWithVirtualHost

2001-05-16 Thread Jason Czerak
I"m running Apache 1.3.12 + mod_perl 1.25 I'm looking to fully optimized my mod_perl scripts and in the process I'm finding that I can't totaly seperate my virtual hosts. I'm finding that sub procedure that are in modules that I write will get redefined across vhosts. I did extensive research on

Re: Apache::DBI missing methods?!

2001-05-16 Thread Issac Goldstand
> > Hi, > > I've just joined the list looking for an answer to this. A couple of > others have posted the same problem but I couldn't find any answers. > > I'm running RH6.2 with standard Apache, perl and mod_perl rpms. I'm > hitting a brick wall if I include a 'PerlModule Apache::DBI' line in > h

DB_File::Lock and the STOP button

2001-05-16 Thread Dave Edsall - The Tauminator
I have a question about DB_File::Lock with a database and users hitting the STOP button. We have recently converted a database from an ASCII flat file to db file. The ASCII flat file used flock() to lock the files. Now that we have switched to DB_File, we have adopted DB_File::Lock as our

Re: authorization and mod_perl

2001-05-16 Thread will trillich
On Wed, May 16, 2001 at 01:39:45PM -0400, barries wrote: > On Wed, May 16, 2001 at 12:07:28PM -0400, Vivek Khera wrote: > > > > I don't think location takes a glob pattern. > > A nit: it can. , and can all take > shell-like globs using ?, *, and []/[!...]/[^...] operators, looks like. > No equ

RE: DB_File::Lock and the STOP button

2001-05-16 Thread David Harris
Hi, If a script using DB_File::Lock is interrupted by the STOP button, the file will be appropriately unlocked. When using DB_File::Lock, there really is no "critical section" for making sure that the lock will be released appropriately. If a fatal exception happens while the database is open, t

How to change all the url of a particular website.. (append session id)

2001-05-16 Thread ktgoh
Hi . Hmm since i cannot get the cookie set by another URLDo you have any other suggestions for my problem. Current, i intend to pass the session id via the url. But the problem is let say first time i pass a url http://www.nus.edu.sg?sessionid=eeddffg i could get the sessionid from my mod pe