[MapProxy] Changing MapProxy's baseurl

Wee Sritippho wee.s at forest.go.th
Mon Apr 1 00:00:09 PDT 2024


Hello Travis,

Thank you. I was so focused on the baseurl keyword that I didn't realize 
the deployment section would have this information. It seems I missed 
the X-Script-Name header.

"X-Script-Name – path of MapProxy when the URL is not / (e.g. /mapproxy)"

On 29/3/2567 20:43, Travis Kirstine wrote:
> Doesn't the method described in the docs accomplish this?
> https://mapproxy.github.io/mapproxy/latest/deployment.html#nginx 
> <https://mapproxy.github.io/mapproxy/latest/deployment.html#nginx>
>
>
>         location /mapproxy {
>             proxy_pass http://127.0.0.1:8080/ 
> <http://127.0.0.1:8080/>;
>             proxy_set_header Host $http_host;
>             proxy_set_header X-Script-Name /mapproxy;
>         }
>
> Results in
> http://foobar.com/mapproxy/tms/1.0.0/....... 
> <http://foobar.com/mapproxy/tms/1.0.0/.......>..
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20240401/bb765cba/attachment.htm>


More information about the MapProxy mailing list