[MapProxy] mapproxy behind a reverse proxy and use of X-Script-Name
Oliver Tonnhofer
olt at omniscale.de
Fri Mar 22 05:18:44 PDT 2013
On 21.03.2013, at 23:06, Anne Blankert wrote:
> I had hoped that MapProxy would replace the script_name and path_info part of the URL ("/map/service") by the X-Script-Name ("/mywmsservice"). However, the X-Script-Name is not used as a replacement but as a prefix to /map/service (result: "/mywmsservice/map/service")
MapProxy fully supports the X-Script-Name header and it will adapt the service URLs in the capabilities accordingly. The only problem is that script name refers to MapProxy itself. All /service, /demo, /tms, etc URLs are internals of the MapProxy service, these are not scripts.
> Is there an easy way to prevent MapProxy from appending "/map/service" to the X-Script-Name in the getCapabilities output?
No, it's not configurable, it will always be /service.
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com
http://mapproxy.org | https://github.com/olt | @oltonn
More information about the MapProxy
mailing list