Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 65606 invoked from network); 18 Jul 2008 18:24:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 18:24:20 -0000 Received: (qmail 14858 invoked by uid 500); 18 Jul 2008 18:24:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 14840 invoked by uid 500); 18 Jul 2008 18:24:08 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 14829 invoked by uid 99); 18 Jul 2008 18:24:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 11:24:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of solprovider@gmail.com designates 74.125.44.153 as permitted sender) Received: from [74.125.44.153] (HELO yx-out-1718.google.com) (74.125.44.153) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 18:23:15 +0000 Received: by yx-out-1718.google.com with SMTP id 3so162827yxi.84 for ; Fri, 18 Jul 2008 11:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=1E9uB3LZ6nykrAT7SX4WLJ7B2QgcFU3u4vq5NqsAfHQ=; b=unTwZs3DepFoZPWoCXY5TthtiyioFQnEU18LNSsEAdwtqFi6mrL4tZR4eZzghS6Odj KWRTO7HGpL4RVavSgheGae7JX+rGcBsqX69OjB8/DBt0s9fLluEZjxS/6jlMQ/Q4nvbh /+OtORLuNdV0ZSnCJedXqIMKBCFkpp7m+6824= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=JPMUJKQvs6x8ltouaZkiF3JSQuYIzU2dihde45rTcSlEnJZ3N/vQiPFBO+jYzJ6Yx6 TH3fx4QApWInaiRWDMPPDECICBf6AStR1qRFjJKIarj5uG1VMYvHtzqo0WamUCXfeODC zqZJNjkhIrAx/o7Rnncf9pO8R8YR9STaV5vTQ= Received: by 10.142.246.6 with SMTP id t6mr167102wfh.26.1216405419284; Fri, 18 Jul 2008 11:23:39 -0700 (PDT) Received: by 10.143.32.13 with HTTP; Fri, 18 Jul 2008 11:23:39 -0700 (PDT) Message-ID: Date: Fri, 18 Jul 2008 14:23:39 -0400 From: solprovider@apache.org Sender: solprovider@gmail.com To: users@httpd.apache.org In-Reply-To: <15900883.451216401709094.JavaMail.root@mail> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <19858638.431216401571190.JavaMail.root@mail> <15900883.451216401709094.JavaMail.root@mail> X-Google-Sender-Auth: 590ada747f7d08af X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Send a request to another apache server Hi Chris, Restating the problem: You are firewalling the Internet by having one Web server answer to port 80. You want some traffic to be passed from your Web server to an application server (for webmail, but the application is irrelevant.) This is a standard Web proxy. First choose whether the URL is a virtual server or a path: http://webmail.example.com/ http://www.example.com/webmail/ This is cosmetic for usability, but determines the configuration settings needed. Then configure Apache httpd to proxy those requests to the application server. If using a distinct server name, use a Virtual Server. If using a path, add the configuration to the main server's configuration. I believe both can be handled with ProxyPass, but we do not use that. One of our production systems uses Rewrites in the Virtual Server configuration: RewriteEngine On RewriteRule ^/(.*)$ http://webmail.example.com:8080//$1 [P] ProxyPassReverseCookieDomain webmail.example.com example.com ProxyPassReverse / http://webmail.example.com:8080/ Note: We use the IP Address for the internal server rather than "webmail.example.com". If you use a path, the RewriteRule would need adjustment: RewriteRule ^/webmail/(.*)$ http://webmail.example.com:8080//$1 [P] HTH, solprovider P.S. "example.com", "example.net", and "example.org" were reserved for examples so people do not create URLs to other domains when no real domain is needed. --------------------------------------------------------------------- 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