Empty tiles are not generated by Tilestream
Bug #1179518 reported by
Daniele Viganò
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Platform |
Won't Fix
|
Low
|
Daniele Viganò |
Bug Description
When requesting a tile with empty data the Tilestream server throw an HTTP 404 error instead of serving an empty tile.
Example: http://
To post a comment you must log in.
For the moment we fixed the issue intercepting the 404 error on the reverse proxy and serving an empty tile (blank png) directly from the Nginx server using proxy_intercept _errors on; and error_page 404 /blank.png;
server {
listen 80;
server_name tilestream. openquake. org;
location / {
proxy_ set_header X-Real-IP $remote_addr;
proxy_ set_header X-Forwarded-For $proxy_ add_x_forwarded _for;
proxy_ set_header Host $host;
proxy_ pass http:// 127.0.0. 1:8000/;
proxy_ intercept_ errors on;
}
location ~* \.mbtiles { deny all; access_log off; log_not_found off; }
error_page 404 /blank.png;
root /var/www;
location = /blank.png {
}
error_page 500 502 503 504 /50x.html;
root /usr/share/ nginx/html;
location = /50x.html {
}
}