35. Background¶
When your tile stores are set up, you need to host them as public 'xyz' tile services. This is simply a case of deploying apache or nginx (we describe the process using nginx here) and then hosting the tile directories. We use the following scheme for these tile store urls:
- http://maps.sansa.org.za/bluemarble - tiles for the global blue marble dataset
- http://maps.sansa.org.za/za_spot_2012 - National SPOT mosaic for South Africa
- http://maps.sansa.org.za/osm_africa - transparent overlay tiles for South Africa
As successive years of tiles are added, they will be published according to http://maps.sansa.org.za/za_spot_XXXX where the XXXX represents the year number.
36. Nginx Installation¶
Install nginx using the following command:
37. Create directory shares for nginx¶
Edit /etc/nginx/sites-enabled/default
as sudo and set the file contents as per the listing below:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
server_name localhost, 41.74.158.9, maps.sansa.org.za;
location /bluemarble {
try_files $uri $uri/ =404;
}
}
Note Your sysadmin will need to open port 80 on the firewall so that the server is publicly accessible.