Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 69340 invoked from network); 11 Jun 2010 15:39:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Jun 2010 15:39:24 -0000 Received: (qmail 31117 invoked by uid 500); 11 Jun 2010 15:39:21 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 31046 invoked by uid 500); 11 Jun 2010 15:39:21 -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 31038 invoked by uid 99); 11 Jun 2010 15:39:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jun 2010 15:39:21 +0000 X-ASF-Spam-Status: No, hits=-1.1 required=10.0 tests=AWL,FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tevans.uk@googlemail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jun 2010 15:39:17 +0000 Received: by gwj17 with SMTP id 17so721303gwj.18 for ; Fri, 11 Jun 2010 08:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=kxSbcl1TqIJC61Zs58TdEcnfHCoQLKJeCMg16/Rdj+g=; b=I4Lx7cCN1ZdYFP0lNGviFZdiGLfRQHdeGXwLqCKa3dVt2I6Z+erlcS5xry3vRrEb2x edU1UbM7w2PbMkIqa1iXcwggwhrDNI4sM6hDZR/9Aw5bYfzXDXfkMVy+Mjr/sGVzptej 2GSgWeGNvXOAuTHvtIF2ZjOQJqGU0cWG37SD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jo4O2M3kwA2DoGLGojbrXdSBS03re9b98qQaI3u3PLEGIiDfiNXxyzuKiBjp1a6K8p Y9X7+pzEVkmmpXUEEWTOhw9bs7Y34Z5Fl6uQ/B3KEqkHpwYYoMEuxiEU5XYXUYi6oD0k yaoLz5llP+xCQPB37QUJHgdf8w7x9idHWDVp0= MIME-Version: 1.0 Received: by 10.239.193.11 with SMTP id g11mr141863hbi.77.1276270277069; Fri, 11 Jun 2010 08:31:17 -0700 (PDT) Received: by 10.239.185.1 with HTTP; Fri, 11 Jun 2010 08:31:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 11 Jun 2010 16:31:16 +0100 Message-ID: From: Tom Evans To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 Subject: Re: [users@httpd] rewrite rule for mingle OK, that makes everything clearer. BTW, you are proxying /mingle/. That final / has meaning, please be precise about whether something has a trailing slash or not. Your first examples of attempting to access '/mingle/' through the proxy were requesting the URL '/mingle', which is why you got 404s. You did later show logs where you had requested it properly, so I could understand, but you must use the correct URLs, or things _wont_ work. OK, so when you go to the proxy and request a mingle URL, the mingle server returns this Location header: Location: http://site.mydomain.com/profile/login When you go directly, by specifying the IP address, the mingle server returns this Location header: Location: http://localhost:8080/profile/login When this is processed by the proxy, it must be rewritten to this: Location: http://site.mydomain.com/mingle/profile/login so change this line in the configuration: ProxyPassReverse /mingle/ http://192.168.1.10:8080/ to this: ProxyPassReverse /mingle/ http://site.mydomain.com/ ProxyPassReverse roughly means this: For each appropriate header, search for the second argument in the value, and if found, replace with the first argument and reconstruct the protocol, host and port according to the host headers/vhost name. Restart apache, and re-do the tests. Tom --------------------------------------------------------------------- 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