[MapProxy] Re: Nginx, TMS and missing tiles
Michael Shishcu
micklesh at gmail.com
Sat Jan 28 11:11:43 EST 2012
hi Luca,
that kind of nginx config works for me for a couple of months without any
problem.
I'm not sure if this is the best way but still...
to improve the speed further, you can try to set some kind of memory cache
on nginx side.
regards, michael
On Sat, Jan 28, 2012 at 6:03 PM, Luca Casagrande
<luca.casagrande at gmail.com>wrote:
> 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 :)
>
>
> ______________________________**_________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/mapproxy<http://lists.osgeo.org/mailman/listinfo/mapproxy>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20120128/9f29add5/attachment.html
More information about the MapProxy
mailing list