Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 84512 invoked from network); 14 Aug 2007 18:57:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2007 18:57:58 -0000 Received: (qmail 16386 invoked by uid 500); 14 Aug 2007 18:57:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16368 invoked by uid 500); 14 Aug 2007 18:57:45 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 16357 invoked by uid 99); 14 Aug 2007 18:57:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 11:57:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.54.246.85 as permitted sender) Received: from [65.54.246.85] (HELO bay0-omc1-s13.bay0.hotmail.com) (65.54.246.85) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 18:57:39 +0000 Received: from hotmail.com ([65.54.162.80]) by bay0-omc1-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 14 Aug 2007 10:45:15 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 14 Aug 2007 10:45:14 -0700 Message-ID: Received: from 66.31.123.13 by BAY108-DAV8.phx.gbl with DAV; Tue, 14 Aug 2007 17:45:13 +0000 X-Originating-IP: [66.31.123.13] X-Originating-Email: [mgainty@hotmail.com] X-Sender: mgainty@hotmail.com Reply-To: "Martin Gainty" From: "Martin Gainty" To: "Tomcat Users List" References: <20070814152150.275150@gmx.net> Subject: Re: Proxy Server Date: Tue, 14 Aug 2007 13:45:03 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-OriginalArrivalTime: 14 Aug 2007 17:45:14.0751 (UTC) FILETIME=[DECAC8F0:01C7DE9A] X-Virus-Checked: Checked by ClamAV on apache.org The stock answer is to setup mod_proxy under Apache and use Apache to front-end load all your requests (details located here) http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html Note that If you have any appreciable amount of static content (watch your jmeter perf nosedive) then you will want to look into implementing mod_jk If you dont want to go thru the complexity of installing yet another system then you can use the tried and true request.getHeader as in String Referer_value = request.getHeader(HTTP_REFERER) and redirect the request according to some criteria if Referer_value == "localhost" (this request is for my server so process normally) else { String serverURL = request.getParameter("serverURL"); String deployuri = request.getParameter("deployuri"); String redirectURL = serverURL + deployuri; response.sendRedirect(redirectURL); } If you've installed Tomcat the example code to retrieve headers is located at http://YourComputer:8080/servlets-examples/reqheaders.html Viel Gluck/ Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: To: Sent: Tuesday, August 14, 2007 11:21 AM Subject: Proxy Server > Hi, > > I am using a Tomcat 5.5.9 server (only for development) on my local pc, > within a company network that is using a proxy server. Problem: My > application does http requests to a server were a proxy is required, as > well as requests to an > IP adress were no proxy is required / allowed. I added these 2 lines to my > catalina.properties file: > > http.proxyPort= > http.proxyHost= > > If I add these lines, the service that requires the proxy works, however > the other service does not work - and vice versa. > > Is there a way to configure Tomcat so that I may use a proxy, but exlude > certain URLS, just like you can do in a browser? > > Thanks in advance, > > Marcus > > > -- > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f�r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org