Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 61532 invoked from network); 22 Jun 2008 00:22:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2008 00:22:49 -0000 Received: (qmail 7523 invoked by uid 500); 22 Jun 2008 00:22:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 7510 invoked by uid 500); 22 Jun 2008 00:22:40 -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 7499 invoked by uid 99); 22 Jun 2008 00:22:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2008 17:22:40 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=HS_INDEX_PARAM,NORMAL_HTTP_TO_IP,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.14.204.174] (HELO qb-out-1314.google.com) (72.14.204.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jun 2008 00:21:47 +0000 Received: by qb-out-1314.google.com with SMTP id f12so3514693qba.40 for ; Sat, 21 Jun 2008 17:22:05 -0700 (PDT) Received: by 10.67.92.4 with SMTP id u4mr935368ugl.75.1214094124568; Sat, 21 Jun 2008 17:22:04 -0700 (PDT) Received: from nino-martinez-vazquez-waels-computer-279.local ( [212.242.112.26]) by mx.google.com with ESMTPS id 27sm25538940ugp.49.2008.06.21.17.22.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Jun 2008 17:22:03 -0700 (PDT) Message-ID: <485D9B28.5070906@jayway.dk> Date: Sun, 22 Jun 2008 02:22:00 +0200 From: Nino Saturnino Martinez Vazquez Wael User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_proxy and preservehosts Hi I am running "multiple" web sites on my server, and I need for the backing application(tomcat) to be able to see which domain the user are coming from. So I have the below configuration. It seems that the first request goes well. But every subsequent request gets the sub url appended so it looks like this "www.mydomain.com/ZeuzWeb-0.1-SNAPSHOT/", however it does not seem like it's my application since it still generates correct links : "www.mydomain.com/?parameters". Im not sure it it can be done without proxy preserve host? Once I turn it off again it works just fine. Oh and btw I am using apache 2 on ubuntu(heron) server. ProxyPreserveHost On ProxyPass /images http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/images ProxyPass / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/ ProxyPassReverse / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/ Order deny,allow Allow from all -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 --------------------------------------------------------------------- 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