Sunday, 14 January 2018

Help Setting up GeoServer Proxy with OpenLayers


I have a GeoServer WMS in Apache-Tomcat at http://localhost:8080 and a mod_wsgi app in standard Apache at http://localhost:80/myapp.


My OpenLayers map is being hosted statically by the Apache-Tomcat Geoserver app at http://localhost:8080/geoserver/www/OL.html. The JavaScript in this map has to call the mod_wsgi app for non geographic data.


I've tried setting up a proxy in GeoServer the following ways


http://localhost:80/mypp

http://localhost


localhost

None of these work. After making a request some of my response object attributes look like this which means it's not really working. GeoServer logs show no errors


priority "NORMAL"
readyState 4
responseText ""
responseXM Lnull
status 0
statusText ""


Can't say I'm too much of an expert at Proxies. But it seems to me that I wouldn't need to set up a OpenLayers proxy (as mentioned here) if GeoServer can proxy for me.


Ideas, hints, advice?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...