I am completely new to nginx, and I am asked to find a way to serve Map Tiles, which are divided according to zoom levels. The structure of the image file is similar to ~/data/images/7/65/70.png , where 7 is the zoom level, 65 and 70 are the lon-lat values. Folder 65 contains many files, such as 71.png, 72.png, etc.
I installed Nginx correctly and I can get a Welcome to nginx message. I followed the instructions at http://nginx.org/en/docs/beginners_guide.html and created the directories /data/www and /data/images . I placed the index.html file under the /data/www symbol and tile in the /data/images section. Then I changed the configuration file by adding the following lines to the http tags:
server { location / { root /data/www; } location /images/ { root /data; } }
After reloading the configuration file and entering localhost in the browser, I can neither get the index.html file nor see the images.
What I'm trying to do is show the image when I enter something like:
http:
- 7: folder with 7th zoom level
- 65: folder with latitude
- 70.png: file indicating the longitude (folder 65 includes many png files)
What am I missing?
nginx configuration configuration-files
iso_9001_
source share