Re: Transparent front-end proxying for many VirtualHosts

2003-03-07 Thread Ask Bjoern Hansen
On Wed, 5 Mar 2003, Andrew Ho wrote: I want to simplify my configuration in two ways. I'd prefer not to maintain two sets of VirtualHost configuration data, and I'd like it if the block that proxies .pl files to the backend proxy not be replicated per VirtualHost. With the details you

Re: Apache::DBI on mp2

2003-03-07 Thread Ask Bjoern Hansen
On Thu, 6 Mar 2003, Stas Bekman wrote: re: rollback, the DBD drivers will perform the normal disconnect(), but without doing the physical disconnect, and normal DESTROY, without destroying the datastructures which maintain the physical connection, so there shouldn't be much to change for this

Re: problems installing mod_perl 2

2003-03-07 Thread Stas Bekman
Carlos Villegas wrote: Hi, First some basic info: -Apache 2.0.44 -Solaris 9 sparc -perl 5.8.0 -mod_perl-1.99_08 (from mod_perl-2.0-current.tar.gz) -complete newbie to mod_perl I had some problems to compile mod_perl: make test would fail, after reading the mailing list archives, I found a few

porting modules to mp2 docs are updated

2003-03-07 Thread Stas Bekman
Since the questions of porting to mp 2.0 are on raise, and there is some confusion regarding use of Apache::compat. I've done a massive porting docs update: Please review the following if you are involved in porting, and let me know if I've missed something or if something is still unclear:

DECLINE, ERRORs in the middle of hanlers stack

2003-03-07 Thread Ruslan U. Zakirov
Hello All! Stacked handlers is a very useful technology, but as I think incomplete. I need some suggestions. My project split content handler in the few parts. And each handler send part of the requested page to user, but sometimes I must stop proccessing and return DECLINE, redirect user

Re: Apache::DBI on mp2

2003-03-07 Thread Stas Bekman
Ask Bjoern Hansen wrote: On Thu, 6 Mar 2003, Stas Bekman wrote: re: rollback, the DBD drivers will perform the normal disconnect(), but without doing the physical disconnect, and normal DESTROY, without destroying the datastructures which maintain the physical connection, so there shouldn't be

Re: [mp2] automatic Apache::compat preloading in CPAN modules isa no-no

2003-03-07 Thread Stas Bekman
Stas Bekman wrote: Apache::compat is useful during the mp1 code porting. Though remember that it's implemented in pure Perl. In certain cases it overrides mp2 methods, because their API is very different and doesn't map 1:1 to mp1. So if anything, not under my control, loads Apache::compat my

Re: Apache::DBI on mp2

2003-03-07 Thread Ask Bjoern Hansen
On Fri, 7 Mar 2003, Stas Bekman wrote: If the physical connection is still there, would the database server do a rollback? If earlier the rollback worked correctly with $dbh ||= connect();, this will work the same, since it performs the same operation, but rips off only parts of $dbh,

Re: [mp2] integration with apache threads

2003-03-07 Thread Pavel Hlavnicka
Thank you very much, gentelmen. I'm happy for now, I guess. I do undestand perl threading issue, my problem was rather on how mod_perl and apache thread work together. I'm quite satisfied with your explanations. Thanks a lot. Pavel P.S.: Stas, ... yes I saw many segfaults... :) Perrin

Re: shtml donĀ“t get parsed with mod_perlprotecting the directory

2003-03-07 Thread Wladimir Boton
Thank you, it works! my conf file has the following: location /auth Options +IncludesNOEXEC SetHandler perl-script PerlAccessHandler Apache::handlers::authentication PerlFixupHandler Apache::handlers::shtmlFixupHandler /Location and I create the file shtmlFixupHandler.pm with the following

[ANNOUNCE] Apache::Clean-2.02b

2003-03-07 Thread Geoffrey Young
The URL http://www.modperlcookbook.org/~geoff/modules/Apache-Clean-2.02b.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Clean-2.02b.tar.gz size: 6334 bytes md5: 55402e3e753599e56a74204b3e8649c6 this is a preliminary port of Apache::Clean over to mod_perl 2.0. in

Optimising cache performance

2003-03-07 Thread Clinton Gormley
I'd appreciate some feedback on my logic to optimise my cache (under mod_perl 1) I'm building a site which will have a large number of fairly complicated objects (each of which would require 5-20 queries to build from scratch) which are read frequently and updated relatively seldom. I'm

error using instance: can't locate ... pnotes .. via

2003-03-07 Thread Frank Maas
Hi, I am workin on a site where all pages are handled via an Apache::SSI descendant. Some included parts are itself mod_perl routines that use the instance-methode to recreate the request. The routines work fine if used standalone but as soon as the routine gets included via the SSI method

Basic Auth logout

2003-03-07 Thread Francesc Guasch
this has been asked before, and I've found in the archives there is no way I could have a logout page for the Basic Auth in apache. Is there nothing I can do ? This is required only for the development team, so we need to let mozilla or IE forget about the username and password. This is a site

RE: Basic Auth logout

2003-03-07 Thread FFabrizio
The only way to expire a basic auth login is to close all instances of the browser. This is not a mod_perl limitation; it's just the way basic auth works. It's pretty easy to spin a mod_perl authentication handler to take the place of basic auth, though. There's some recipes in the cookbook.

Re: Basic Auth logout

2003-03-07 Thread Bill Moseley
On Fri, 7 Mar 2003, Francesc Guasch wrote: this has been asked before, and I've found in the archives there is no way I could have a logout page for the Basic Auth in apache. Is there nothing I can do ? This is required only for the development team, so we need to let mozilla or IE forget

Re: Optimising cache performance

2003-03-07 Thread Perrin Harkins
Clinton Gormley wrote: I'd appreciate some feedback on my logic to optimise my cache (under mod_perl 1) First, I'm assuming this is for a distributed system running on multiple servers. If not, you should just download one of the cache modules from CPAN. They're good. I'm planning a two

RE: Basic Auth logout

2003-03-07 Thread Frank Maas
this has been asked before, and I've found in the archives there is no way I could have a logout page for the Basic Auth in apache. Is there nothing I can do ? This is required only for the development team, so we need to let mozilla or IE forget about the username and password. And

Re: Optimising cache performance

2003-03-07 Thread Cory 'G' Watson
On Friday, March 7, 2003, at 12:45 PM, Perrin Harkins wrote: You seem to be taking a lot of care to ensure that everything always has the latest version of the data. If you can handle slightly out-of-date data, I would suggest that you simply keep objects in the local cache with a

Re: Optimising cache performance

2003-03-07 Thread Perrin Harkins
Cory 'G' Watson wrote: I'm not sure if my way would fit in with your objects Clinton, but I have some code in the commit() method of all my objects which, when it is called, removes any cached copies of the object. That's how I stay up to date. Why wouldn't it simply update the version in the

Re: Basic Auth logout

2003-03-07 Thread Magnus Bodin
On Fri, Mar 07, 2003 at 08:48:41PM +0100, Frank Maas wrote: And would this be possible with mod_perl2 ? What you could try (note the 'could', it's not tested) is return a redirect to the same realm with a different id/password that is not correct. If your site is www.mysite.com then

Re: Optimising cache performance

2003-03-07 Thread Cory 'G' Watson
On Friday, March 7, 2003, at 02:20 PM, Perrin Harkins wrote: Cory 'G' Watson wrote: I'm not sure if my way would fit in with your objects Clinton, but I have some code in the commit() method of all my objects which, when it is called, removes any cached copies of the object. That's how I

RE: error using instance: can't locate ... pnotes .. via

2003-03-07 Thread Frank Maas
Regarding my previous post: ... The routines work fine if used standalone but as soon as the routine gets included via the SSI method (subrequest?) apache/mod_perl complains. The call to instance results in an error 'can't locate method 'pnotes' via package X::Y::Z', where X::Y::Z my own

Re: [mp2] automatic Apache::compat preloading in CPAN modules is a no-no

2003-03-07 Thread Lincoln Stein
Hi Stas, I'm not interested in modifying CGI.pm to use MP2 until I start using MP2 myself. This isn't likely in the near future, since I'm very happy indeed with MP1/Apache1. Lincoln On Friday 07 March 2003 03:58 am, Stas Bekman wrote: Stas Bekman wrote: Apache::compat is useful during

[mp2] What happened to $r-connection-remote_addr?

2003-03-07 Thread Rob Brown
I'm getting complaints about Apache::DNAT not working with Apache 2 because mod_perl 1.99 suddenly can't handle the things it used to. I'm getting this spewage: [Fri Mar 07 11:22:21 2003] [error] [client 166.70.29.72] Can't locate object method connection via package Apache::RequestRec at

Re: Apache::DBI on mp2

2003-03-07 Thread Stas Bekman
Ask Bjoern Hansen wrote: On Fri, 7 Mar 2003, Stas Bekman wrote: If the physical connection is still there, would the database server do a rollback? If earlier the rollback worked correctly with $dbh ||= connect();, this will work the same, since it performs the same operation, but rips off only

Re: DECLINE, ERRORs in the middle of hanlers stack

2003-03-07 Thread Stas Bekman
Ruslan U. Zakirov wrote: Hello All! Stacked handlers is a very useful technology, but as I think incomplete. I need some suggestions. My project split content handler in the few parts. And each handler send part of the requested page to user, but sometimes I must stop proccessing and

What does SetHandler do unexpectedly?

2003-03-07 Thread Frank Maas
Hi, Well, by now you must know that I am working on something... and I keep stumbling on things I seem not to understand and not to be able to find in the docs / books. See this example: Location / # SetHandler perl-script PerlHeaderparserHandler MyClass-first PerlAuthenHandler MyAuthen

Server questions

2003-03-07 Thread Michael Hyman
Hi guys, I have a dilemma that I need input on. If you were to buy machines to be used as dedicated web servers, which would you go with? Option 1. A Sun SunFire 280R with 2 Ultra 3 processors and 4GB RAM. Run Solaris 9 Option 2. PC-server with 2 ~2.8GHZ Xeon processors and 8GB RAM. Run Linux

Re: [mp2] What happened to $r-connection-remote_addr?

2003-03-07 Thread Stas Bekman
Rob Brown wrote: I'm getting complaints about Apache::DNAT not working with Apache 2 because mod_perl 1.99 suddenly can't handle the things it used to. I'm getting this spewage: [Fri Mar 07 11:22:21 2003] [error] [client 166.70.29.72] Can't locate object method connection via package

Re: [mp2] $r-document root(/my/hacked/path);

2003-03-07 Thread Stas Bekman
Rob Brown wrote: I need to be able to at least temporarily change the document_root on the fly. Something like the following: $r-document_root(/my/hacked/path); But it crashes with a prototype mismatch. The docs say: $r-document_root:cannot currently be modified. requires locking since it is

Re: Server questions

2003-03-07 Thread Dzuy Nguyen
I always say, buy the best you can afford. Then again, consider how many Linux PC you can have for the price of the Sun. Run those PCs in a web farm or cluster and that Sun can't match the processing power and speed. Michael Hyman wrote: Hi guys, I have a dilemma that I need input on. If you

PerlCleanupHandler firing too early?

2003-03-07 Thread Trey Hyde
My PerlCleanupHandler seems to be firing before the content phase has finished processing the page. The handler pretty much looks like sub handler { my ($r) = @_; undef $Foo::bar; undef $Foo::baz; return OK; } It's being invoked in a virtual host apache conf segment with PerlCleanupHandler

Re: Server questions

2003-03-07 Thread Michael Hyman
I am not familiar with clustering Would you run a mod_perl based web site on a cluster? Isn't the point of a cluster to make a group of machines appear to be one? If so, how is that beneficial for web services? Thanks...Michael - Original Message - From: Dzuy Nguyen [EMAIL

Re: Server questions

2003-03-07 Thread Dzuy Nguyen
Absolutely. In this case, the cluster actually acts like a load balancing solution. Michael Hyman wrote: I am not familiar with clustering Would you run a mod_perl based web site on a cluster? Isn't the point of a cluster to make a group of machines appear to be one? If so, how is that

Re: Optimising cache performance

2003-03-07 Thread Clinton Gormley
Thanks for your feedback - a couple more questions First, I'm assuming this is for a distributed system running on multiple servers. If not, you should just download one of the cache modules from CPAN. They're good. For now it's not a distributed system, and I have been using