[MapProxy] use http proxy with mapproxy

dirk.thalheim at bkg.bund.de dirk.thalheim at bkg.bund.de
Sun Oct 9 22:52:36 PDT 2016

Hello Omid,

in our mapproxy installation we need to configure a http proxy too. We did it by setting the environment variables within the mapproxy server script (that script that you configured in your mod_wsgi as entry point). Just add something like this to the script:

  import os

  os.environ["http_proxy"] = "http://myproxyserver:8080"
  os.environ["https_proxy"] = "https://myproxyserver:8080"
  # to request hosts without http proxy add a comma separated list of host names to no_proxy
  os.environ["no_proxy"] = "localhost,, example.com"

Kind regards,


Von: MapProxy [mailto:mapproxy-bounces at lists.osgeo.org] Im Auftrag von omid omidan
Gesendet: Samstag, 8. Oktober 2016 16:45
An: mapproxy at lists.osgeo.org
Betreff: [MapProxy] use http proxy with mapproxy


I need to configure a  proxy url and user for mapproxy to access to internet. I have mapproxy app on Apache mod_wsgi.
I set proxy for debian but it seems that python dont read from there.
any idea about that?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20161010/ca22f501/attachment.html>

More information about the MapProxy mailing list