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 proxy

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 a

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

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 webserver.

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: Location / SetHandler perl-script AuthType MyAuth

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: Location /

Re: Authorization question and subdirectories

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

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? Here is what i

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

[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

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 location directives. JS location /foo* JS AuthNamefoo control JS AuthTypeBasic JS PerlAuthenHandlerApache::OK I don't think location takes a

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 might be getting called

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. Directory, Location and File 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(shift); MC my

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 Location /burkhold/foo SetHandler

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 PERL5LIB

NameWithVirtualHost

2001-05-16 Thread Jason Czerak
Im 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

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. Directory, Location and File can all take shell-like globs using ?, *, and []/[!...]/[^...] operators, looks

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,

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