mod_perl2 filters and reverse proxies

2004-11-10 Thread allan juul
hi i have tried the filter example on http://www.perl.com/pub/a/2003/04/17/filters.html which worked like a charm. (this filter will "clean" the html in the requested file if the location begins with /clean) i wish to use a filter/handler to massage the content coming from a reverse proxied s

Re: Authentication using https

2004-11-10 Thread Michael J Schout
On Wed, 10 Nov 2004, Skylos wrote: it could go... -> GET content from myserver port 80 <- 403 errordocument login form -> POST credentials to myserver port 443 <- Location http://myserver/content <- Set-Cookie: ticket=gooduser; Domain=myserver; Path=content; -> GET content from myserver port 80 <-

Re: mod_perl 2 & Sessions

2004-11-10 Thread Carl Brewer
Perrin Harkins wrote: On Thu, 2004-10-28 at 11:53, Geoffrey Young wrote: I'm sure others can point out additional tools as well. Apache::SessionManager is a good place for newbies to start with sessions under mod_perl: http://search.cpan.org/~enrys/Apache-SessionManager-1.02/ Further to that, "Ses

Re: segmentation fault and core dump

2004-11-10 Thread Stas Bekman
Ian Moon wrote: Wouldn't you know it... after rebuilding everything with debugging flags I can't seem to reproduce the error. Well atleast I'll be prepared for next time. But you don't want to use that in production, since it's slower (possibly significantly slower). I realize the documentation i

Re: segmentation fault and core dump

2004-11-10 Thread Ian Moon
Wouldn't you know it... after rebuilding everything with debugging flags I can't seem to reproduce the error. Well atleast I'll be prepared for next time. I realize the documentation is under development but sending a person to a link where the first line is: META: need to review (unfinished), is

Re: segmentation fault and core dump

2004-11-10 Thread Stas Bekman
Ian Moon wrote: I can't get even the mod_perl rocks examples to work to on my system without segmentation faults. I'm hoping somebody else understands these messages better than I do and can point out how I might be going wrong. I am compiling from original source, NOT using ports. System Info:

segmentation fault and core dump

2004-11-10 Thread Ian Moon
I can't get even the mod_perl rocks examples to work to on my system without segmentation faults. I'm hoping somebody else understands these messages better than I do and can point out how I might be going wrong. I am compiling from original source, NOT using ports. System Info: freebsd-5

Re: Authentication using https

2004-11-10 Thread Skylos
Michael, I'm sorry but I don't believe that is correct. Having recently implimented a Apache::AuthCookie system, I can see a possible issue with this strategy. Please feel free to enlighten me if I am full of shit. First of all, there's nothing stopping you from submitting your login form to an

Re: Authentication using https

2004-11-10 Thread John Wittkoski
Michael wrote on 11/10/04, 4:28 PM: > > All, > > > > I'm about to replace the authentication mechanism that > > our web site uses. However I wanted to sanity check my > > thought process. > > > > Is it possible to have an Authen handler sitting on > > certain areas of a site, and if a us

Re: [BUG?] Problems with Apache::Status and B::TerseSize

2004-11-10 Thread Stas Bekman
Geoffrey Young wrote: Having configured Apache::Status correctly and getting listings for the various modules which are loaded, I came across a slight bug in Apache::Status (line 102) where if there isn't a $VERSION in a module Apache::Status barfs, I corrected this with a small fix from # if !$o

Re: [Module::Build] MANIFEST matters

2004-11-10 Thread Ron Savage
On Tue, 9 Nov 2004 17:44:22 -0600, Ken Williams wrote: Hi Ken > Let me know if you think there are outstanding issues here. Sounds good. -- Cheers Ron Savage, [EMAIL PROTECTED] on 11/11/2004 http://savage.net.au/index.html -- Report problems: http://perl.apache.org/bugs/ Mail list info: http:/

Re: logging at startup

2004-11-10 Thread Perrin Harkins
On Wed, 2004-11-10 at 16:09, Arshavir Grigorian wrote: > How can I write my code to know whether it is in a request and only if > so, output the standard error page. You should be able to use $Apache::Server::Starting and $Apache::Server::ReStarting for this. There may be a better way. > On a s

Re: logging at startup

2004-11-10 Thread Tom Schindl
Are you talking about mp1? This would be a possibility but with a significant performance hit. You could turn it the other wayround because you know when your server is starting: http://perl.apache.org/docs/1.0/api/Apache.html#Global_Variables Because I'm at it where do I find these variables in

Re: Authentication using https

2004-11-10 Thread Michael
> All, > > I'm about to replace the authentication mechanism that > our web site uses. However I wanted to sanity check my > thought process. > > Is it possible to have an Authen handler sitting on > certain areas of a site, and if a user isn't logged in > (i.e. doesn't have an auth session cook

Re: Apache::Cookie->new/bake broken - mod_perl 2

2004-11-10 Thread Arshavir Grigorian
I actually reported the same problem yesterday, but wasn't sure whether I was doing something wrong. Is this the appropriate list for discussing liapreq2 issues? Arshavir Dan Sully wrote: I'm running into an interesting problem, using Apache::SessionManager. My first request to the webpage succe

Re: logging at startup

2004-11-10 Thread Arshavir Grigorian
Perrin Harkins wrote: On Wed, 2004-11-10 at 10:11, Arshavir Grigorian wrote: The problem is that when the module is loaded there is no request object and I am not sure how I can use log_error without it. Are you in a request at the time when the error happens? If so, you can get a request

Apache::Cookie->new/bake broken - mod_perl 2

2004-11-10 Thread Dan Sully
I'm running into an interesting problem, using Apache::SessionManager. My first request to the webpage successfully generates a cookie, and I see it in my browser's jar. The next response though, the Apache::Cookie->fetch() gets a truncated cookie (md5 sum), and can't tie to the previous session an

Re: Closing DB handler with PerlCleanupHandler

2004-11-10 Thread Perrin Harkins
On Wed, 2004-11-10 at 02:37, Batara Kesuma wrote: > > Also, why do you want to avoid persistent connections? > > Because the DB is running out of memory just to keep the persistent > connections, I just want to try it without persistent connections and > see the result. If the overhead is not too

Re: logging at startup

2004-11-10 Thread Perrin Harkins
On Wed, 2004-11-10 at 10:11, Arshavir Grigorian wrote: > The problem is that when the module is loaded there is no request object > and I am not sure how I can use log_error without it. Are you in a request at the time when the error happens? If so, you can get a request object by calling Apache

Re: [BUG?] Problems with Apache::Status and B::TerseSize

2004-11-10 Thread Geoffrey Young
> Having configured Apache::Status correctly and getting listings for the > various modules which are loaded, I came across a slight bug in > Apache::Status (line 102) where if there isn't a $VERSION in a module > Apache::Status barfs, I corrected this with a small fix from > ># if !$opt we s

[BUG?] Problems with Apache::Status and B::TerseSize

2004-11-10 Thread Gareth Harper
I'm working with Solaris 2.8, mod_perl 1.99_17, Apache 2.0.52 mod_perl installed fine, and runs wonderfully (and up to twice as fast as the current compiled c module). The one problem we're having is with slightly high memory usage, which can probably be alleviated if I add in a few explicit ex

CPAN cleanup

2004-11-10 Thread Geoffrey Young
hi all... if you have a module on cpan in the Apache:: namespace, please take a moment to consider cleaning house a bit by removing all but, say, the current version and one version back of a particular module. you can do this by visiting pause https://pause.perl.org/pause/authenquery?ACTION=d

Authentication using https

2004-11-10 Thread Martin Moss
All, I'm about to replace the authentication mechanism that our web site uses. However I wanted to sanity check my thought process. Is it possible to have an Authen handler sitting on certain areas of a site, and if a user isn't logged in (i.e. doesn't have an auth session cookie) we present the

Re: Closing DB handler with PerlCleanupHandler

2004-11-10 Thread Timour Ezeev
On Wed, 10 Nov 2004, Batara Kesuma wrote: [...] ## httpd.conf SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders PerlCleanupHandler MyApache::Cleanup Options +ExecCGI ## MyApache::Cleanup.pm package MyApache::Cleanup; use strict; sub handler { my ($r) =

logging at startup

2004-11-10 Thread Arshavir Grigorian
Hi, I have a package hash that I am trying to tie to a db table when the package is loaded. I also have an error handling routine that logs the error using Apache::Log->log_error() routine then displays a standard error page to the user. The problem is that when the module is loaded there is no

Re: Closing DB handler with PerlCleanupHandler

2004-11-10 Thread Glenn Strauss
On Wed, Nov 10, 2004 at 12:51:56PM +0900, Batara Kesuma wrote: > Hi Stas, > > > 1) use Apache::DBI > > > > 2) if not, refer to: > > http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler > > http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object > >