Re: advice needed: mod_perl reverse proxy

[prev] [thread] [next] [Date index for 2005/04/20]

From: allan juul
Subject: Re: advice needed: mod_perl reverse proxy
Date: 20:53 on 20 Apr 2005
Stas Bekman wrote:
> allan juul wrote:
> 
>> hi
>>
>> i need advice before i waste too much time on the bleeding obvious.
>>
>> we have a setup where we will reverse proxy content both to our own 
>> backend-servers (which run on IIS) and other external servers which 
>> content we dont control. one of the reasons we proxy is because of 
>> speed/performance
>>
>> we have an Apache 2.054 up front on port 80 and the backend is on the 
>> same machine which is running windows 2004
>>
>>
>> we need to fix broken img src, and absolute links and that sort of 
>> thing coming from the external servers
>>
>> i have fiddled with mod_proxy_html to rewrite stuff and that works ok, 
>> but have some features that doesn't mix well with our solution 
>> (content -type is encoded utf-8, where we proxy to iso-8859-1 for 
>> instance. or some html tags are stripped etc.) also caching becomes 
>> slower because of this output filter it seems (i guess because of 
>> unknown content-length)
> 
> 
> But if you use a mod_perl filter you will still hit the issue of unknown 
> content-length header.

yes, of course that's true.
there goes caching (:

>> it seems way overkill to have a mod_perl enabled frontend, but i'm 
>> pretty confident we could write a mod_perl filter to do the content 
>> rewrites we need.
> 
>  >
> 
>> so, is a mod_perl-enabled Apache acting as a proxy just a sick idea. 
>> it will proxy content and the filter will have to scan all response 
>> content
> 
> 
> It shouldn't be too hard to write a quick prototype, run benchmarks and 
> see whether it scales or not. It's really hard to give an answer when 
> you don't know what kind of type/size of code base you deal with, since 
> if your code base is very small and you don't load tons of other things, 
> you may get away with a quite efficient setup.
> 

i'm not sure what you mean, but the backend code is compiled dll's and 
the usual images/js/css/xsl files all running in a .NET environment. 
it's not a gigantic code base but pretty big. the load on the servers 
are not so bad currently because its spread on several identical machine 
setups (load balanced). its a public web portal.

ok, i'll give it a mod_perl shot. i guess my main worries are just the 
memory the "light" frontend would begin to eat.

btw. (and OT): is it in fact correct that i should see the HTTP headers 
for the proxied server (IIS) and not the frontend (apache) ?



thanks
./allan

(message missing)

advice needed: mod_perl reverse proxy
allan juul 19:18 on 20 Apr 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 20:24 on 20 Apr 2005

Re: advice needed: mod_perl reverse proxy
allan juul 20:53 on 20 Apr 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 22:08 on 20 Apr 2005

Re: advice needed: mod_perl reverse proxy
allan juul 20:22 on 30 Apr 2005

compile mod_perl with Apache::DBI support
jiesheng zhang 05:07 on 02 May 2005

Re: compile mod_perl with Apache::DBI support
Stas Bekman 06:43 on 02 May 2005

Re: compile mod_perl with Apache::DBI support
jiesheng zhang 12:10 on 02 May 2005

Re: compile mod_perl with Apache::DBI support
Perrin Harkins 14:48 on 02 May 2005

Re: compile mod_perl with Apache::DBI support
jiesheng zhang 16:21 on 02 May 2005

Re: compile mod_perl with Apache::DBI support
Perrin Harkins 16:22 on 02 May 2005

Re: compile mod_perl with Apache::DBI support
jiesheng zhang 16:46 on 02 May 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 06:48 on 02 May 2005

Re: advice needed: mod_perl reverse proxy
Devin Murphy 20:25 on 20 Apr 2005

Re: advice needed: mod_perl reverse proxy
Dominique Quatravaux 08:38 on 21 Apr 2005

Re: advice needed: mod_perl reverse proxy
Alex Greg 09:08 on 21 Apr 2005

Re: compile mod_perl with Apache::DBI support
Michael Peters 17:02 on 02 May 2005

Re: advice needed: mod_perl reverse proxy
allan juul 18:42 on 03 May 2005

Re: advice needed: mod_perl reverse proxy
Jeff Ambrosino 20:12 on 03 May 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 22:40 on 03 May 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 01:56 on 10 May 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 16:43 on 10 May 2005

Re: advice needed: mod_perl reverse proxy
Stas Bekman 01:59 on 10 May 2005

Generated at 06:56 on 17 May 2005 by mariachi v0.52