Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15BF3E6C5 for ; Fri, 15 Mar 2013 13:40:21 +0000 (UTC) Received: (qmail 44354 invoked by uid 500); 15 Mar 2013 13:40:16 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 44087 invoked by uid 500); 15 Mar 2013 13:40:15 -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 44067 invoked by uid 99); 15 Mar 2013 13:40:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 13:40:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of DRuggeri@primary.net designates 216.87.38.221 as permitted sender) Received: from [216.87.38.221] (HELO mail1.primary.net) (216.87.38.221) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 13:40:09 +0000 Received: from home.simonrage.com ([216.114.77.126]:27518 helo=[192.168.0.2]) by mail1.primary.net with esmtpa (Exim 4.63) (envelope-from ) id 1UGUrK-0003js-AW for users@httpd.apache.org; Fri, 15 Mar 2013 08:39:48 -0500 Message-ID: <5143249C.3010409@primary.net> Date: Fri, 15 Mar 2013 08:39:40 -0500 From: Daniel Ruggeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: users@httpd.apache.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ACL-Warn: X-The email account used to send this email was: DRuggeri@primary.net X-Spam-Score: -2.9 (--) X-Spam-Report: Spam detection software, running on the system "mail1.primary.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 3/14/2013 11:15 AM, Ryan Merrell wrote: > So a couple questions I have are > 1) Is what I'm planning to accomplish even doable? I figured if it was > I'd at least be able to find just one example out on the Internet, but > I haven't been able to, which has created doubt as to whether I'm > fully understanding how mod_proxy works. Yes, absolutely. [...] Content analysis details: (-2.9 points, 8.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Struggling with Reverse Proxy Configuration for Server with multiple subdomains On 3/14/2013 11:15 AM, Ryan Merrell wrote: > So a couple questions I have are > 1) Is what I'm planning to accomplish even doable? I figured if it was > I'd at least be able to find just one example out on the Internet, but > I haven't been able to, which has created doubt as to whether I'm > fully understanding how mod_proxy works. Yes, absolutely. > 2) If it is doable, what config changes do I need to make so it uses > the hostname instead of the default vhost? See question below - we can diagnose this with more info. > 3) If I can get this part to work, am I going to have any problems in > getting an Active/Passive load balancer set up? I'm just verifying but do you mean an active/passive backend? If so, that is trival to accomplish but you will need to use the balancer. Your configuration example looks good. The most important directive is the ProxyPreserveHost. Is there any way on the backend server to log the host header received? It sounds like the backend has a name-based vhost setup and my initial suspicion is that we're losing something on the way there. Another helpful module in httpd is mod_dumpio which will show the request as sent to the backend (but produces tons of logs). Feel free to review/steal examples from this presentation as we get closer to the balancer config: http://people.apache.org/~druggeri/notes/ApacheConNA%202010%20Presentation.odp -- Daniel Ruggeri --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org