hi Luca,<br>that kind of nginx config works for me for a couple of months without any problem.<br>I'm not sure if this is the best way but still...<br>to improve the speed further, you can try to set some kind of memory cache on nginx side.<br>
<br>regards, michael<br><br><div class="gmail_quote">On Sat, Jan 28, 2012 at 6:03 PM, Luca Casagrande <span dir="ltr"><<a href="mailto:luca.casagrande@gmail.com">luca.casagrande@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 28/01/2012 16:38, Luca Casagrande wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everybody,<br>
I'd like to use nginx to serve TMS tiles generated with MapProxy but I don't understand how handle a missing tile. The idea is: if the tile is there, serve it; if not call MapProxy to generate it.<br>
<br>
Thanks for your help!<br>
L.<br>
</blockquote></div>
What do you think about:<br>
- MapProxy with Gunicorn and eventlet<br>
- Nginx with something like this (taken from Gunicorn site):<br>
<br>
location / {<br>
# checks for static file, if not found proxy to app<br>
try_files $uri @proxy_to_app;<br>
}<br>
<br>
location @proxy_to_app {<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
proxy_set_header Host $http_host;<br>
proxy_redirect off;<br>
proxy_pass <a href="http://app_server" target="_blank">http://app_server</a>;<br>
}<br>
This should do the the trick or not?<br>
<br>
Re-Thanks :)<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapproxy</a><br>
</div></div></blockquote></div><br>