Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 29306 invoked by uid 500); 9 Apr 2001 21:50:21 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@apache.org Received: (qmail 29295 invoked from network); 9 Apr 2001 21:50:20 -0000 Message-ID: <20010409215021.84257.qmail@web11605.mail.yahoo.com> Date: Mon, 9 Apr 2001 14:50:21 -0700 (PDT) From: Barry Hoggard Subject: Re: deploying tips running 2 apache server To: rene mendoza , modperl@apache.org In-Reply-To: <004701c0bf99$8c8a76c0$0100a8c0@cajaderene> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I'm using 2 servers - static on front end + mod_perl/mason on the back. Here are my rewrite rules (the reason you see dollar signs with $user/$port/$perlport are because I'm using mod_macro): # proxy everything that's not static or images to mod_perl Options -Indexes RewriteEngine On #RewriteLog /tmp/rewrite.log-$user RewriteLogLevel 0 RewriteRule ^/static/ - [L] RewriteRule ^/images/ - [L] # deal with trailing slash problem RewriteCond /home/httpd/$user/comp_root/htdocs%{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] RewriteRule ^/(.*) http://%{SERVER_NAME}:$perlport/$1 [P] ProxyPassReverse / http://%{SERVER_NAME}/ --- rene mendoza wrote: > i ve been reading the mod perl guide and ive learned that i dont want > to use apache child processes to serve static html or images, so i > want to implement a lightweight (only mod_dav and cgi enabled apache > server, lots of child processes) and a heavy mod perl apache server 5 > or 10 apache processes/ > > does anybody has pointers, or tips of where to start? how to > configure that only static content of a virtual host goes thru one > server and dynamic goes thru another. > > im using Mason in the mod_perl enabled apache > > is it done with mod_rewrite?, should both servers be ssl enabled? > > thanks > rene mendoza > ===== Barry Hoggard http://www.hoggard.org __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/