You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Daniel McBrearty <da...@gmail.com> on 2006/12/01 09:49:34 UTC
using light/heavy apache
Hi
I saw a longish article on the site a while back that described how to
deploy a site so that a lightweight apache instance serves static
files, while s seperate server handles mod_perl stuff. Can't seem to
find it back though.
I'm in the the process of rewriting my site using catalyst, but also I
realised that a lot of content can just be static files, so this makes
sense. I guess the lightweight server needs to be able to identify
content that is for mod_perl by the uri, so one way might be to serve
all active content from something like (www.engoi.com/active/... ).
But, as the first part of the uri will normally be the user language,
( www.engoi.com/en/ ...) I'd rather not do it like that.
Just wondering what my options are in configuring this. Can anyone
point me at useful links, or give some hints?
thank you.
Daniel
--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
Re: using light/heavy apache
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Daniel McBrearty wrote:
> Hi
>
> I saw a longish article on the site a while back that described how to
> deploy a site so that a lightweight apache instance serves static
> files, while s seperate server handles mod_perl stuff. Can't seem to
> find it back though.
http://perl.apache.org/docs/tutorials/apps/scale_etoys/etoys.html
?
Yeah basically your proxy layer can server the static stuff directly or
can ProxyPass / mod_rewrite to a slim server for static stuff and to a
different one for your mod_perl related "application" layer for the
dynamic stuff.
--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
I never had a dream come true
'Til the day that I found you.
Even though I pretend that I've moved on
You'll always be my baby.
I never found the words to say
You're the one I think about each day
And I know no matter where life takes me to
A part of me will always be...
A part of me will always be with you.
Re: using light/heavy apache
Posted by Perrin Harkins <pe...@elem.com>.
Daniel McBrearty wrote:
> I saw a longish article on the site a while back that described how to
> deploy a site so that a lightweight apache instance serves static
> files, while s seperate server handles mod_perl stuff. Can't seem to
> find it back though.
The best writeup on it is here:
http://www.modperlbook.org/html/ch12_01.html
> But, as the first part of the uri will normally be the user language,
> ( www.engoi.com/en/ ...) I'd rather not do it like that.
That's no problem. You can use a regex in your ProxyPass setting or use
mod_rewrite with its proxy integration to identify these URLs. It
should be able to handle just about any URL scheme.
- Perrin
Re: using light/heavy apache
Posted by Daniel McBrearty <da...@gmail.com>.
thanks very much guys - that's very useful info.
--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
Re: using light/heavy apache
Posted by Jonathan <jv...@2xlp.com>.
On Dec 1, 2006, at 2:20 PM, Frank Wiles wrote:
> You might want to look at PerlBal (http://www.danga.com/perlbal/)
> also to use in place of a light Apache. It's lighter then a light
> Apache and has some other interesting features.
pesonally, i'm a huge fan of nginx ( http://wiki.codemongers.com )
using it, i've really gotten a lot more out of my mod_perl servers.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Re: using light/heavy apache
Posted by Frank Wiles <fr...@wiles.org>.
On Fri, 1 Dec 2006 09:49:34 +0100
"Daniel McBrearty" <da...@gmail.com> wrote:
> Hi
>
> I saw a longish article on the site a while back that described how to
> deploy a site so that a lightweight apache instance serves static
> files, while s seperate server handles mod_perl stuff. Can't seem to
> find it back though.
>
> I'm in the the process of rewriting my site using catalyst, but also I
> realised that a lot of content can just be static files, so this makes
> sense. I guess the lightweight server needs to be able to identify
> content that is for mod_perl by the uri, so one way might be to serve
> all active content from something like (www.engoi.com/active/... ).
> But, as the first part of the uri will normally be the user language,
> ( www.engoi.com/en/ ...) I'd rather not do it like that.
>
> Just wondering what my options are in configuring this. Can anyone
> point me at useful links, or give some hints?
You might want to look at PerlBal (http://www.danga.com/perlbal/)
also to use in place of a light Apache. It's lighter then a light
Apache and has some other interesting features.
---------------------------------
Frank Wiles <fr...@wiles.org>
http://www.wiles.org
---------------------------------