[MapProxy] Re: Nginx, TMS and missing tiles
Luca Casagrande
luca.casagrande at gmail.com
Sat Jan 28 11:03:30 EST 2012
On 28/01/2012 16:38, Luca Casagrande wrote:
> Hello everybody,
> 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.
>
> Thanks for your help!
> L.
What do you think about:
- MapProxy with Gunicorn and eventlet
- Nginx with something like this (taken from Gunicorn site):
location / {
# checks for static file, if not found proxy to app
try_files $uri @proxy_to_app;
}
location @proxy_to_app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://app_server;
}
This should do the the trick or not?
Re-Thanks :)
More information about the MapProxy
mailing list