This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
To: <modperl@apache.org>
From: Philip Mak <pmak@aaanime.net>
Subject: Is ProxyPass the best you can do?
Date: Sat, 16 Jun 2001 22:43:21 -0400 (EDT)
I've been thinking about the ProxyPass technique for coping with
mod_perl's high memory usage (setup a non-mod_perl httpd that handles all
requests, but ProxyPasses the mod_perl calls to a mod_perl enabled
Apache).
I find that the complexity of this method is more than it should have to
be. For one thing, ProxyPass only works on a directory. But if you have
images and scripts in the same directory, this is a problem (and it's
convenient to be able to have them in the same directory, so that your
scripts can <a href="image.jpg"> instead of <a href="/images/image.jpg">
especially when you have a lot of images in different directories).
Is there a way to ProxyPass by file extension or something?
===
To: modperl <modperl@apache.org>
From: Martin Redington <m.redington@ucl.ac.uk>
Subject: Re: Is ProxyPass the best you can do?
Date: Sun, 17 Jun 2001 04:21:15 +0100
Squid is the alternative mentioned in the mod_perl_tuning.pod that comes
with mod_perl.
Alternatively, you could try using mod_rewrite, to direct requests for
scripts to a different apache instance (e.g. running on a separate port
or ip). I've never tried this, but it should work.
Squid might be more efficient.
cheers,
Martin
===
To: modperl <modperl@apache.org>
From: Philip Mak <pmak@aaanime.net>
Subject: Re: Is ProxyPass the best you can do?
Date: Sat, 16 Jun 2001 23:31:41 -0400 (EDT)
On Sun, 17 Jun 2001, Martin Redington wrote:
> Squid is the alternative mentioned in the mod_perl_tuning.pod that comes
> with mod_perl.
Can Squid read Apache configuration files? On a new site I'm making
(www.shoujoai.com), I have directives in httpd.conf like this:
RewriteRule ^/fanfics/([a-zA-Z_0-9\-]+)/$ /fanfics/series.asp?series=$1
so that viewing http://www.shoujoai.com/fanfics/*/ actually calls an
Apache::ASP script. But, only by reading the httpd.conf would one be able
to tell that it's a script instead of a normal directory.
> Alternatively, you could try using mod_rewrite, to direct requests for
> scripts to a different apache instance (e.g. running on a separate port
> or ip). I've never tried this, but it should work.
You can use RewriteRule to make it proxy the request to another Apache? I
thought you can only alias a URL to a file, or make it send an HTTP
redirect. How do you make it proxy?
===