Re: Proxy Tomcat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux