Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86744 invoked by uid 500); 19 Mar 2003 21:08:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 86685 invoked from network); 19 Mar 2003 21:08:06 -0000 Received: from venus.commerce.ubc.ca (137.82.154.16) by daedalus.apache.org with SMTP; 19 Mar 2003 21:08:06 -0000 Received: from exchange.commerce.ubc.ca (exchange.commerce.ubc.ca [137.82.66.44]) by venus.commerce.ubc.ca (8.9.3/8.9.3) with ESMTP id NAA24464 for ; Wed, 19 Mar 2003 13:08:12 -0800 Received: from usager67-202.hec.ca ([132.211.67.202]) by exchange.commerce.ubc.ca with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id FS7Y2FYK; Wed, 19 Mar 2003 13:08:00 -0800 Date: Wed, 19 Mar 2003 16:08:05 -0500 (Est) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: Message-ID: References: X-X-Sender: slive@exchange.commerce.ubc.ca MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] ProxyPass as a handler On Wed, 19 Mar 2003 tlewis@quicknet.net wrote: > I am trying to increase our site performance by setting up an apache > server to serve all of the static content while using a seperate apache > server compiled with mod_perl to serve up the dynamic pages. I am using > apache 1.3.27 with mod_ssl 2.8.12. > > Currently I have one server that spawns off approximately 150 apache > processes. These processes take up between 200 and 350 meg of space each. Ouch! > I would like to do something like this: > > # mod_perl handler > AddProxyPassHandler .asp http://127.0.0.2/ > AddProxyPassHandler .htm http://127.0.0.2/ > > # mod_php handler > AddProxyPassHandler .php http://127.0.0.3/ > > # iis server for legacy stuff (optional, but would be nice) > > # IIS server behind firewall for security > AddProxyPassHandler .asp http://192.168.1.22/ > You need mod_rewrite: RewriteEngine On RewriteRule ^/legacy/(.*)\.asp http://192.168.1.22/legacy/$1.asp [P] RewriteRule (.*)\.asp$ http://127.0.0.2/$1.asp [P] RewriteRule (.*)\.htm$ http://127.0.0.2/$1.htm [P] RewriteRule (.*)\.php$ http://127.0.0.3/$1.php [P] Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org