Thursday, May 29, 2008

Accessing Mapguide via Studio from behind a proxy

Mapguide Studio doesn't seem to have any proxy support, which is pretty annoying when your working behind a corporate firewall.

An easy solution is to use Apache as a reverse proxy

Make sure that mod_proxy_http and mod_proxy are loaded, usually this involves un-commenting the LoadModule in the httpd.conf file


ProxyRequests off
ProxyPass /mapguide_extsite/ http://external.dot.something/mapguide/
ProxyPassReverse /mapguide_extsite/ http://external.dot.something/mapguide/
ProxyRemote http://external.dot.something/ http://corporate-firewall:8080/

If the proxy server requires a username & password you can use the old username and password in a url trick

ProxyRemote http://external.dot.something/ http://user:pass@corporate-firewall:8080/

UPDATE: unfortunately the username password bit doesn't work, there is however a bug with a patch for a proxyremote extension from early 2006

No comments: