Re: PerlAuthenHandler and ErrorDocument 401

2008-05-20 Thread fof
Torsten Foertsch wrote: > > On Wed 21 May 2008, fof wrote: >> I have had problems before when mod_perl seems to override various >> behavior >> in Apache. For example when using a PerlAuthenHandler it seemed to wipe >> out >> the standard DirectoryIndex directive which the main webserver had set

Re: PerlAuthenHandler and ErrorDocument 401

2008-05-20 Thread Torsten Foertsch
On Wed 21 May 2008, fof wrote: > I have had problems before when mod_perl seems to override various behavior > in Apache. For example when using a PerlAuthenHandler it seemed to wipe out > the standard DirectoryIndex directive which the main webserver had set to > index.htm etc. This caused a probl

Re: PerlAuthenHandler and ErrorDocument 401

2008-05-20 Thread fof
fof wrote: > I am going to try removing the PerlAuthenHandler and simply secure the > directory with a htpasswd thus taking mod_perl out of the picture. This > will tell me if some Apache setting in the main server config is being > inherited by my virtual host and stuffing things up and if it

Re: Initialize object permanently

2008-05-20 Thread Philip M. Gollucci
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André Warnier wrote: | The first thing that happens, is that there are multiple Apache children | processes started and running at the same time, and that you never know | which one is going to execute your script. And each one of these | children pr

Re: PerlAuthenHandler and ErrorDocument 401

2008-05-20 Thread fof
Torsten Foertsch wrote: > > On Tue 20 May 2008, fof wrote: >> >> PerlAuthenHandler MyAuthenHandler >> AuthType Basic >> AuthName "REST Interface" >> Require valid-user >> >> >> ErrorDocument 401 /http/401.h

Re: [OT] Solaris + Apache 2.2 / PHP 5 cluster config help

2008-05-20 Thread Perrin Harkins
On Tue, May 20, 2008 at 4:00 PM, Issac Goldstand <[EMAIL PROTECTED]> wrote: > Right - I know that in theory, but was worried about the disk/ram/cpu > overhead of replicating the writes to all of the slave servers offsetting > that benefit... Good point. I'd suggest you look at how much RAM you ca

Re: [OT] Solaris + Apache 2.2 / PHP 5 cluster config help

2008-05-20 Thread Issac Goldstand
Perrin Harkins wrote: On Sun, May 18, 2008 at 8:05 AM, Issac Goldstand <[EMAIL PROTECTED]> wrote: Also, do people have concrete benchmarks of keeping a read-only replication mysql on the webservers vs a single read/write shared mysql server? Any time you can spread the reads over multiple se

Re: [OT] Solaris + Apache 2.2 / PHP 5 cluster config help

2008-05-20 Thread Perrin Harkins
On Sun, May 18, 2008 at 8:05 AM, Issac Goldstand <[EMAIL PROTECTED]> wrote: > Also, do people have concrete > benchmarks of keeping a read-only replication mysql on the webservers vs a > single read/write shared mysql server? Any time you can spread the reads over multiple servers it will help. Th

Re: New to mod_perl

2008-05-20 Thread Perrin Harkins
Hi Roy, > I'm setting up a proxy using Apache 2.2.8 with mod_proxy and I need to add a > custom request header with information that is currently stored in our MySQL > server. I was thinking of using Apache to get user's IP address and pass it > to mod_perl where mod_perl script will query the dat

Re: Apache::DBI. Is it running?

2008-05-20 Thread Perrin Harkins
On Sat, May 17, 2008 at 5:28 PM, kropotkin <[EMAIL PROTECTED]> wrote: > Despite using $Apache::DBI::DEBUG=1 #or 2 > in my startup.pl script I cannot see any output in my error_log. This is the > test I've seen for seeing if it is working. Make sure you set that AFTER you load Apache::DBI. You can

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-20 Thread Louis-David Mitterrand
On Mon, May 19, 2008 at 09:33:49PM +0300, Niko Tyni wrote: > On Mon, May 19, 2008 at 11:12:08AM +0200, Louis-David Mitterrand wrote: > > > Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a > > segfault when using MasonX::Request::WithApacheSession: > > > > [Sat May 17 16

Re: Initialize object permanently

2008-05-20 Thread william
On 5/20/08, william <[EMAIL PROTECTED]> wrote: > On 5/20/08, Dodger <[EMAIL PROTECTED]> wrote: > > 2008/5/19 Michael Peters <[EMAIL PROTECTED]>: > > > > > william wrote: > > > > > >> Then I would need to modify the QueryData module then, > > > > > > No don't do that. > > > > > >> by

Re: Initialize object permanently

2008-05-20 Thread william
On 5/20/08, Dodger <[EMAIL PROTECTED]> wrote: > 2008/5/19 Michael Peters <[EMAIL PROTECTED]>: > > > william wrote: > > > >> Then I would need to modify the QueryData module then, > > > > No don't do that. > > > >> by modifying > >> the standard module would it make my future maintenance more

Re: PerlAuthenHandler and ErrorDocument 401

2008-05-20 Thread Torsten Foertsch
On Tue 20 May 2008, fof wrote: > > PerlAuthenHandler MyAuthenHandler > AuthType Basic > AuthName "REST Interface" > Require valid-user > > >         ErrorDocument 401 /http/401.html Try: Satisfy any Torst