[Tile-serving] [openstreetmap/mod_tile] mod_tile apache server not adding header (#189)

malexgit notifications at github.com
Thu Sep 13 21:49:55 UTC 2018


My Apache server is running mod_tile and serving up tiles just fine. However, tiles served are not being sent with a response header I have added to the Apache configuration. For testing purposes I have uploaded a static .png file directly to the server to test that it does include the response header for content served up outside of mod_tile.

The response header I have added to my Apache configuration is:
Access-Control-Allow-Origin:*

Here is an example of my Apache server serving a static .png file with the appropriate response header
curl -i http://MyHost/11.png

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 200 OK
Date: Thu, 13 Sep 2018 21:20:06 GMT
Server: Apache/2.4.6 (CentOS)
Foo: Bar
Last-Modified: Thu, 13 Sep 2018 20:22:20 GMT
ETag: "13cd-575c676c36b15"
Accept-Ranges: bytes
Content-Length: 5069
Access-Control-Allow-Origin: *
Content-Type: image/png

Here is an example of the same apache server serving a tile rendered through mod_tile/renderd:
curl -i http://34.198.108.116/osm_tiles/5/11/11.png
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 200 OK
Date: Thu, 13 Sep 2018 21:20:12 GMT
Server: Apache/2.4.6 (CentOS)
ETag: "cbf71740047f08923f5eed4a83dee897"
Content-Length: 5069
Cache-Control: max-age=604800
Expires: Thu, 20 Sep 2018 21:20:12 GMT
Content-Type: image/png

Why is renderd/mod_tile preventing apache from attaching that response header? I have attached my renderd.conf file below to help debug


Here is my renderd.conf file:
[renderd]
;socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile
stats_file=/var/run/renderd/renderd.stats

[mapnik]
plugins_dir=/usr/local/lib/mapnik/input
font_dir=/usr/local/share/fonts/truetype
font_dir_recurse=1

[default]
URI=/osm_tiles/
TILEDIR=/var/lib/mod_tile
XML=/usr/local/src/mapnik-style/osm.xml
HOST=tiledev2.rostermonster.com
TILESIZE=256
CORS=*




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/189
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180913/a0a181a8/attachment.html>


More information about the Tile-serving mailing list