[EMAIL PROTECTED] wrote:
[...]
can anyone supply a simple example i then can check on our reverse
proxy ?
Try: t/response/TestApache/content_length_header.pm
Though I haven't tried to call it from the filter, so may be Jeff's
suggestion will work.
Jeff's suggestion does indeed work. oddly enou
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 set_content_
[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
[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'
[EMAIL PROTECTED] wrote:
Compiling mp2 as non-root was a definite good bit of advice - make test
was a success this time - no failures - thanks!
This probably negates the entire error report I mailed before - when (i
can anticipate some in the next ten minutes!) I run into problems again
i'll be cr
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 "\n"
)
why is tha
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 Apache2::
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 ();
http://perl.apache.org/docs
I've had some similar issues, but gotten around them by using
erro_headers_out. This worked for me, so you might give it a try:
$f->r->headers_out->unset('Content-Length');
$f->r->err_headers_out->set('Content-Length' => length($NewBody));
Obviously "$NewBody" is whatever you're
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 res
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, s
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 content-leng
On 4/21/05, Dominique Quatravaux <[EMAIL PROTECTED]> wrote:
> -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
>
-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 qui
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
slo
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
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
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
spee
I'm pretty damn sure you did get that right!
That would do EXACTLY what i want it to do!
I'm gonna play around with that approach when i get home tonight.
Thanks!
On Nov 17, 2004, at 2:26 PM, Tom Schindl wrote:
What you really need here when talking about Pattern-Programming is a
"Factory-Class
Jonathan Vanasco wrote:
package Website1;
my $DB = new Website1::DB();
# make a new ref for the website
sub handler
{
my $r = shift;
my $user = new Website::User( \$r, \$DB );
my $page = new Website::Page( \$user , \$DB );
my $html = $page->
Because i'm an idiot and didn't realize that I was doing that!
I'm just used to passing refs everywhere. to get into the whole 'No
More passing large vars around' thing, i just stopped passing
everything but a ref
Silly me!
On Nov 17, 2004, at 1:25 PM, Tom Schindl wrote:
I don't answer your que
jonathan vanasco wrote:
I built for mod_perl1 a customer webapp framework
It functions as 2 perl modules/package sets
/lib/WebAppFramework
/lib/Website
For each website/webapp, i make a new /lib/Website that subclasses the
WebAppFramework (which handles users, email, webpage generation, etc
-- an
Thanks!
Right now, I should have been more clear, though -- I'm am kinda doing
a bit of each approach you mentioned -- but i am in need of a little
more help.
I think what i want is more of your second approach right now...
Let me elaborate for a moment
WebAppFramework::DB.pm
Base C
On Wed, 17 Nov 2004, jonathan vanasco wrote:
> Ideally, I would have the packages in Website and WebAppFramework
> lookup the right DB for the Website
There are many ways to solve this problem. I'll show you 2 ways. I'll
focus just on the database part to keep this as short as possible, but
th
24 matches
Mail list logo