debugging tip

2006-08-14 Thread Jonathan Vanasco
i've been going crazy trying to abstract my shared libraries into something where the debug code is manageable and reusable without hacking at the library. my problem was that I made too much use of how perl optimizes away debug code if you use constants i had tons of

Re: keep alive under mp -- single and multi server strategies

2006-08-14 Thread Perrin Harkins
On Mon, 2006-08-14 at 14:30 -0400, Jonathan Vanasco wrote: > under my naive understanding, KeepAlive should be off in a multi- > server setup, as the only item in the connection request should be > the single dynamic content page (as the images and css/js files are > handled by the proxy). >

keep alive under mp -- single and multi server strategies

2006-08-14 Thread Jonathan Vanasco
my dev boxes are this: mac osx 10.4 mp2 ports 8080-8090 serves static and dynamic content my prod boxes are: freebsd 6 lighttpd ( probably moving to nginx , as lighty has a gigantic memory leak under heavy proxy use) port 80 for static content and reverse proxy / load

Re: Dynamic Proxy Setup, resend, no styles

2006-08-14 Thread Tom Weber
Problem solved. I used Clinton's suggestion to put the sections in httpd.conf with just one modifcation: The push @ProxyPass should read: push @ProxyPass, "/users/ http://$server/users";; not: push @ProxyPass, "/users/ ", "http://$server/users";; Being new to dynamic configuration through

Re: Dynamic Proxy Setup, resend, no styles

2006-08-14 Thread Perrin Harkins
On Mon, 2006-08-14 at 11:44 -0400, Tom Weber wrote: > By this I mean, I have front end servers: F1 and F2, and middle-tier > servers M1 and M2. I would like F1 to proxy to M1 and F2 to proxy to > M2. I would like to have a small piece of code do this, rather than > having unique httpd.conf files

Re: Dynamic Proxy Setup, resend, no styles

2006-08-14 Thread Clinton Gormley
On Mon, 2006-08-14 at 11:44 -0400, Tom Weber wrote: > Hi, > > I would like to set up dynamic proxy server names in httpd.conf in an > Apache/2.2.2 (Unix) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 > Perl/v5.8.8 on Red Hat 2.6.9-34.0.2.ELsmp #1 SMP environment. Hi Tom having just spent all day l

Re: Adding virtual hosts dynamically via mod_perl

2006-08-14 Thread Clinton Gormley
On Mon, 2006-08-14 at 11:08 +0200, Clinton Gormley wrote: > I am trying to configure virtual hosts dynamically in mod_perl2. I figured out what I was doing wrong, so I thought I'd document it, because it took me so long to figure out. According to http://httpd.apache.org/docs/2.2/mod/core.html#na

Dynamic Proxy Setup, resend, no styles

2006-08-14 Thread Tom Weber
Hi, I would like to set up dynamic proxy server names in httpd.conf in an Apache/2.2.2 (Unix) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.8 on Red Hat 2.6.9-34.0.2.ELsmp #1 SMP environment. By this I mean, I have front end servers: F1 and F2, and middle-tier servers M1 and M2. I woul

Dynamic Proxy Setup???

2006-08-14 Thread Tom Weber
Hi, I would like to set up dynamic proxy server names in httpd.conf in an Apache/2.2.2 (Unix) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.8 on Red Hat  2.6.9-34.0.2.ELsmp #1 SMP environment. By this I mean, I have front end servers: F1 and F2, and middle-tier servers M1 and M2. I would li

Adding virtual hosts dynamically via mod_perl

2006-08-14 Thread Clinton Gormley
I am trying to configure virtual hosts dynamically in mod_perl2. I have a startup file which sets up an 'application' based on my own framework. Part of that inflation creates a number of virtual hosts. I have been trying the following: - In httpd.conf: PerlConfigRequir