Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 357AE9F9D for ; Fri, 18 Nov 2011 22:34:52 +0000 (UTC) Received: (qmail 36908 invoked by uid 500); 18 Nov 2011 22:34:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 36870 invoked by uid 500); 18 Nov 2011 22:34:49 -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 36862 invoked by uid 99); 18 Nov 2011 22:34:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 22:34:49 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [77.247.73.196] (HELO mailfilter-se2.rackhosting.com) (77.247.73.196) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 22:34:38 +0000 Received: from ice.rackhosting.com ([77.247.64.12]) by mailfilter-se2.rackhosting.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RRX0g-00016b-Ul for users@httpd.apache.org; Fri, 18 Nov 2011 23:34:18 +0100 Received: (qmail 12071 invoked from network); 18 Nov 2011 23:34:14 +0100 Received: from 0x3ec62038.inet.dsl.telianet.dk (HELO flyr.dk) (62.198.32.56) by ice.rackhosting.com with ESMTPA; 18 Nov 2011 23:34:13 +0100 Received: from kv331 ([62.198.32.56]) (SquirrelMail authenticated user thva@thva.dk) by flyr.dk with HTTP; Fri, 18 Nov 2011 23:34:21 +0100 Message-ID: In-Reply-To: References: Date: Fri, 18 Nov 2011 23:34:21 +0100 From: "congo thomas" To: users@httpd.apache.org Reply-To: apache@thva.dk User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Filter-ID: XtLePq6GTMn8G68F0EmQveIFPRVGfZpH2ixdjfqV9xLAKHDbOsN4NfAqpmvRIBjCdurx4HCsSO5I L8eJg/hBql5M3b61r8UZNtB3YbvOA1Z8lv/Wo7K7vyYm6oX5a1MMjseTiUVtwLEUy3wE+Oe9pXNG +DfRBHgCLWsjK6+tEOV1Ye+0JX6vbubMRY3Z6hCwyjS9uCzZF+lHNzX0xGc/fL9EHp09/B953Tvk C8D+XNshdSFq1BkrwrXekzhaPGKvkAa2FFYw2WXuPhTINPQqKFFfEoXm0/FPF8PR0w363lmWnpdM fQ0XzI2KhAGd+HX1iouZc+qTBpD1PVBmeNwTidNTfAKkrwkcUJAx9XHTrcSSucCErQcl6OLrYVXc nFzWBvMS/e4aGm1Oq9fxD2YehVUt5c4hDc6Vy4CO4QzgvBnhhenj4S1TX0PfcaRXajHj0w/M/+SK 9qBfCQAfDfEXoMVjEAM4XTx+nsRgxCcvmsAFVd6gR+iX56zoC381e5fMWGXTepkrNocvqrT5PDKw ohRsO4F8C0k+1xesjJ4oFjwub7Xpuj925cTsXKbjPpygH+a0d1sxEwnloikHyYDIxjEvuGslKTrR IXcXpFg5ivY= X-Originating-IP: 77.247.64.12 Authentication-Results: rackhosting.com; auth=pass () smtp.auth=77.247.64.12 X-Rackhosting.comApSmailfilter-Outgoing-Class: ham X-Rackhosting.comApSmailfilter-Outgoing-Evidence: SB/global_tokens (7.08526202164e-06) X-Recommended-Action: accept X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Proxy Tomcat Hello Ricardo, What i usually do for geo services, is to have a dedicated vhost for each service, i.e. one for your geowebcache and one for the mapservice, then its easy to proxy all wms requests onwards to the geowebcache, which subsequently could parse the requests to a basic wms service somewhere, in order to cache the content. If you rewrite these requests, i guess you could experience problems when upgrading the gwc, or if your query string changes, or in other matters where something suddenly behaves oddly. Not to mention confusing debugging... Then your request could be wms.someAddress/?val1=1&val2=2, which you parse to the gwc site http://10.0.0.2:8080/ (like your current proxypass), and then you could setup that tomcat-site to host the gwc as the root i.e. http://10.0.0.2:8080/service/wms?val1=1&val2=2, will yield geo-content. Is this at all any help to you? -since you might have to do some changes, it could be useless for your specific setup. //congo On Fri, November 18, 2011 22:54, Ricardo Bayley wrote: > Hi folks, > > I am trying to proxy a request. > I have this input > > http://someAddress/wms?val1=1&val2=2 > > > it should be turned into > > http://10.0.0.2:8080/gwc/service/wms?val1=1&val2=2 > > > ProxyPassReverse / http://10.0.0.2:8080/ > ProxyPass / http://10.0.0.2:8080/ > RewriteEngine On > # RewriteCond *some condition* > RewriteRule ^/wms(.*)$ http://10.0.0.2:8080/wms%{QUERY_STRING} [P] > > > If I write => RewriteRule ^/wms(.*)$ > http://10.0.0.2:8080/wms*?*%{QUERY_STRING} > [P] > then %{QUERY_STRING} wont be placed. > But if I don't place the "?" then I am not properly forming the request. > > > Can anyone help ? > > > best regards, > > > Ricardo > --------------------------------------------------------------------- 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