[MapProxy] MapProxy and HTTP-Proxy

Oliver Tonnhofer olt at omniscale.de
Fri Aug 17 00:05:42 PDT 2012


On 16.08.2012, at 15:32, gdis at arcor.de wrote:
> I have a problem with MapProxy and HTTP-Proxy.
> To access OSM data from the web I have configured MapProxy to use a proxy. In the config file I added the follwing lines:
> 
> import os
> os.environ["http_proxy"] = "http://example.com:3128"
> 
> This works fine. No problem so far.
> 
> But:
> I also want to access a local WMS which is not accessible through that proxy. Is there a way to define non-proxy-hosts like in java? I found and tried os.environ["http_no_proxy"]="xxx" but it doesn't work.


The standard variable for that is called no_proxy and not http_no_proxy. I've added that to the documentation:

http://mapproxy.org/docs/nightly/configuration_examples.html#access-sources-through-http-proxy


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://github.com/olt    | @oltonn








More information about the MapProxy mailing list