<div dir="auto"><div>Hi Hemant,</div><div dir="auto"><br></div><div dir="auto">I'm pretty sure what you're describing isn't possible with plain vanilla MapProxy but should be possible with a custom WSGI middleware sitting in front of MapProxy. See <a href="https://mapproxy.github.io/mapproxy/latest/auth.html#wsgi-filter-middleware" target="_blank" rel="noreferrer">https://mapproxy.github.io/mapproxy/latest/auth.html#wsgi-filter-middleware</a> for an example of returning an alternative response.</div><div dir="auto"><br></div><div dir="auto">Kind regards,</div><div dir="auto"><br></div><div dir="auto">Matt.</div><div dir="auto"><br></div><div dir="auto"><a href="https://longwayaround.org.uk/" target="_blank" rel="noreferrer">https://longwayaround.org.uk/</a></div><div dir="auto"><a href="https://www.astuntechnology.com/" target="_blank" rel="noreferrer">https://www.astuntechnology.com/</a><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sat, 1 Feb 2025, 03:46 B H via MapProxy, <<a href="mailto:mapproxy@lists.osgeo.org" target="_blank" rel="noreferrer">mapproxy@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>I want to configure a mapproxy with the ability to send redirects(http 302 status code) to the tile urls of the source, instead of serving the Tile content (mapproxy is acting as a simple tile server)...<br></div><div>
<div>Is it possible for me to either configure (or extend through
plugins) Mapporxy so that it serves 302 redirect urls instead of
actually serving the tiles?</div>
</div><div><br></div><div><br></div><div>In my case, there are two sources for different zooms and locations.</div><div>1) Fast source : for zoom 10-17 for a small geographical location (E.g a small town)<br></div><div>2) Slow source: for zoom 1-9 for large geographical locations.(A country)<br></div><div><br></div><div>The real WMS servers behind "Fast source" are going to have better bandwidth and geographical distribution than the proxy. I am trying to figure out if it can directly serve the content to client.</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Hemant <br></div></div>
</div>
_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
</blockquote></div></div></div>