Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 97036 invoked from network); 3 May 2010 19:56:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 19:56:39 -0000 Received: (qmail 55301 invoked by uid 500); 3 May 2010 19:56:36 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 55172 invoked by uid 500); 3 May 2010 19:56:36 -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 55162 invoked by uid 99); 3 May 2010 19:56:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 19:56:36 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.218.218] (HELO mail-bw0-f218.google.com) (209.85.218.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 19:56:31 +0000 Received: by bwz10 with SMTP id 10so1753232bwz.24 for ; Mon, 03 May 2010 12:56:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.13.68 with SMTP id b4mr10035863bka.133.1272916569061; Mon, 03 May 2010 12:56:09 -0700 (PDT) Received: by 10.204.99.76 with HTTP; Mon, 3 May 2010 12:56:09 -0700 (PDT) Date: Mon, 3 May 2010 21:56:09 +0200 Message-ID: From: Richard van der Walt To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [users@httpd] Proxy Error 502 on one vhost and not the second Good day there. I'm using mod_proxy to redirect trafic to java applications running on JBoss instances. I have 3 JBoss instances running seperate apps, the redirects of 2 of these works fine with mod_proxy configuration but the third doesn't. The first 2 instances where set up a long time ago. I've used the one instance's configuration file for the third one as it was close to what I required. Here's the 2 configurations. Working: =A0=A0=A0 ServerAdmin developers@company.com =A0=A0=A0 ServerName sub.domain1.com =A0=A0=A0 ProxyRequests Off =A0=A0=A0 ProxyPreserveHost On =A0=A0=A0 ProxyPass / http://sub.domain1.com:18080/ =A0=A0=A0 ProxyPass /media ! =A0=A0=A0 ProxyPassReverse / http://sub.domain1.com:18080/ =A0=A0=A0 ErrorLog /var/log/apache2/domain1-error_log =A0=A0=A0 CustomLog /var/log/apache2/domain1-access_log combined =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 Options Indexes FollowSymLinks =A0=A0=A0=A0=A0=A0=A0 AllowOverride None =A0=A0=A0=A0=A0=A0=A0 Order allow,deny =A0=A0=A0=A0=A0=A0=A0 Allow from all =A0=A0=A0 The one not working: =A0=A0=A0 ServerAdmin developers@company.com =A0=A0=A0 ServerName sub.domain2.com =A0=A0=A0 ProxyRequests Off =A0=A0=A0 ProxyPreserveHost On =A0=A0=A0 ProxyPass / http://sub.domain2.com:28080/ =A0=A0=A0 #ProxyPass /media ! =A0=A0=A0 ProxyPassReverse / http://sub.domain2.com:28080/ =A0=A0=A0 ErrorLog /var/log/apache2/domain2-error_log =A0=A0=A0 CustomLog /var/log/apache2/domain2-access_log combined =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 Options Indexes FollowSymLinks =A0=A0=A0=A0=A0=A0=A0 AllowOverride None =A0=A0=A0=A0=A0=A0=A0 Order allow,deny =A0=A0=A0=A0=A0=A0=A0 Allow from all =A0=A0=A0 The one that's not working I can browse to http://sub.domain2.com:28080 without a problem but when I try to navigate to http://sub.domain2.com I get the following error irrespective of whether the server it's redirecting to is started or not. " Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET=A0/. Reason: DNS lookup failure for: sub.domain2.com Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request. " I'm running on a SuSE and Apache 2.2.4 environment. Mod_Proxy is loading properly as is evident by the already working instances. I'm either missing the mistake in the vhost directive or forgot about a configuration in another file. Regards -- Richard van der Walt Product Development Stracienta SA (Pty) Ltd. E-mail: richard.vdwalt@stracienta.com E-mail legal disclaimer: http://www.stracienta.com/disclaimer.html www.stracienta.com --------------------------------------------------------------------- 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