This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to serve tiles for Nginx webserver?

0

Dear OSM community,

  1. Can mod_tile be configured with Nginx webserver?
  2. Is there any module for Nginx which does the same as mod_tile to Apache?

I have an application in Flask which is using Nginx and it needs to display maps. As OSM uses Apache2, how can I run the both servers? or Is there a better solution?

Thank you in advance :)

asked 08 Apr '19, 19:06

komms's gravatar image

komms
11113
accept rate: 0%


One Answer:

4

To my knowledge there's nothing like mod_tile for nginx, but you could trivially run Apache on a different port, say port 81, and then configure your nginx to pass through (proxy) certain requests it receives to Apache.

answered 08 Apr '19, 19:12

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

will try and update here.

(08 Apr '19, 19:46) komms

Source code available on GitHub .