Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 17903 invoked from network); 11 Feb 2004 17:41:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Feb 2004 17:41:57 -0000 Received: (qmail 43406 invoked by uid 500); 11 Feb 2004 17:41:20 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 43360 invoked by uid 500); 11 Feb 2004 17:41:20 -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 43259 invoked from network); 11 Feb 2004 17:41:19 -0000 Received: from unknown (HELO out1.smtp.messagingengine.com) (66.111.4.25) by daedalus.apache.org with SMTP; 11 Feb 2004 17:41:19 -0000 X-Sasl-enc: IjQqnbE905dFlP4LY9Nn+g 1076521280 Received: from usager55-41.hec.ca (usager55-41.hec.ca [132.211.55.41]) by mail.messagingengine.com (Postfix) with ESMTP id 974734E7D58 for ; Wed, 11 Feb 2004 12:41:20 -0500 (EST) Date: Wed, 11 Feb 2004 12:42:11 -0500 (Est) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <20040212021124.19b89c87.bkesuma@ml.gaijinweb.com> Message-ID: References: <20040212021124.19b89c87.bkesuma@ml.gaijinweb.com> X-X-Sender: slive@fastmail.fm@mail.messagingengine.com 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] mod_rewrite and firewall problem X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, 12 Feb 2004, Batara Kesuma wrote: > I have Apache running mod_perl. I want to split the dynamic contents and > static contents (image files) into 2 servers. So I downloaded thttpd and > set it to run on port 8080. Then I use mod_rewrite to redirect all access > to /img to port 8080, so all access to static contents (image files) will > be served by thttpd on port 8080. But the problem is, some users are > behind firewall, and the firewall only allow them to connect to port 80. > How can I fix this problem? Please help. I don't think your technique is very good in the first place. If all the requests are going to have to go through apache (even for a redirect), then you are not going to make things faster by splitting images onto another server. People who do this sort of thing usually have the front-end machine serve the images directly, and proxy (rather than redirect) to a back-end maching only for dynamic content. Apache can do this with the [P] plag to RewriteRule, but you would need to use Apache to serve the images. The other option, of course, is to access the images at a different hostname and assign that to a different IP address on your machine. Then thttpd and Apache could each listen on their own IP address for their respective content. 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