Re: advice needed: mod_perl reverse proxy

2005-05-10 Thread allan
Quoting Stas Bekman [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Quoting Stas Bekman [EMAIL PROTECTED]: allan juul wrote: [...] Use must use $r-set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup

Re: advice needed: mod_perl reverse proxy

2005-05-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Quoting Stas Bekman [EMAIL PROTECTED]: allan juul wrote: [...] Use must use $r-set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length'

Re: advice needed: mod_perl reverse proxy

2005-05-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote: hi i don't get it. the below filter does output the content alright it seems, but the setting of the header *value* is incorrect. (?) so the $f-print statement prints correct output but the calcualtion length(output) is incorrect (since it evaluates length of this exact

Re: advice needed: mod_perl reverse proxy

2005-05-04 Thread allan
Quoting Stas Bekman [EMAIL PROTECTED]: allan juul wrote: [...] Use must use $r-set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length' add: use

Re: advice needed: mod_perl reverse proxy

2005-05-04 Thread allan
hi i don't get it. the below filter does output the content alright it seems, but the setting of the header *value* is incorrect. (?) so the $f-print statement prints correct output but the calcualtion length(output) is incorrect (since it evaluates length of this exact string

Re: advice needed: mod_perl reverse proxy

2005-05-03 Thread allan juul
Stas Bekman wrote: allan juul wrote: hi stas Stas Bekman wrote: allan juul wrote: [...] 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 (: Not really. Nothing prevents you from buffering up the

Re: advice needed: mod_perl reverse proxy

2005-05-03 Thread Stas Bekman
allan juul wrote: [...] Use must use $r-set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length' add: use Apache2::Response ();

Re: advice needed: mod_perl reverse proxy

2005-05-02 Thread Stas Bekman
allan juul wrote: hi stas Stas Bekman wrote: allan juul wrote: [...] 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 (: Not really. Nothing prevents you from buffering up the response, process it,

Re: advice needed: mod_perl reverse proxy

2005-04-30 Thread allan juul
hi stas Stas Bekman wrote: allan juul wrote: [...] 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 (: Not really. Nothing prevents you from buffering up the response, process it, set the

Re: advice needed: mod_perl reverse proxy

2005-04-21 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 allan juul wrote: | | 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 A reverse-proxy in mod_perl is something I do for a living. When scaling up it

advice needed: mod_perl reverse proxy

2005-04-20 Thread allan juul
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

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread Stas Bekman
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

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread Devin Murphy
Mod_rewrite? --- allan juul [EMAIL PROTECTED] 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

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread allan juul
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

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread Stas Bekman
allan juul wrote: [...] 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