Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 53718 invoked from network); 3 Jun 2008 08:04:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 08:04:55 -0000 Received: (qmail 83594 invoked by uid 500); 3 Jun 2008 08:04:57 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 83544 invoked by uid 500); 3 Jun 2008 08:04:57 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 83531 invoked by uid 99); 3 Jun 2008 08:04:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 01:04:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 08:04:10 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 8D45B234C12C; Tue, 3 Jun 2008 01:04:31 -0700 (PDT) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 44806] Set the IP address+port used for backend proxy requests. X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_proxy X-Bugzilla-Keywords: PatchAvailable X-Bugzilla-Severity: enhancement X-Bugzilla-Who: apache+bugreports@kd6lvw.ampr.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20080603080431.8D45B234C12C@brutus.apache.org> Date: Tue, 3 Jun 2008 01:04:31 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=44806 --- Comment #17 from D. Stussy 2008-06-03 01:04:31 PST --- RE: Comment #15 - patch: Code in modules/proxy/proxy_util.c (working copy) @@ -2349,6 +2373,21 @@ Does NOT cycle through all the addresses. It tries the first address of the matching address family in the list, and if that fails, it fails the whole attempt. It does not try other addresses in the same address family (e.g. multi-homed host, virtual hosts, etc.). One address may work where another one fails due to interface, firewall, or routing table considerations. Try this: @@ -2349,6 +2373,19 @@ "proxy: %s: fam %d socket created to connect to %s", proxy_function, backend_addr->family, worker->hostname); + if (conf->bindopt_set) { + for(apr_sockaddr_t *addr = conf->bind_addr; addr; addr = addr->next) { + if (addr->family != backend_addr->family) continue; + if (bind_to_addr(newsock, laddr, proxy_function, conf, s) == APR_SUCCESS) + break; + ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "proxy: %s: can not bind to %s:%u+%u", + proxy_function,conf->bind_addr, conf->bind_port, conf->bind_range, NULL); + } + if (!addr) + return DECLINED; + } + } + /* make the connection out of the socket */ rv = apr_socket_connect(newsock, backend_addr); -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org