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

Different tile directory for mod_tile/apache2

0

Hi, I struggle to change the tile directory for the rendering tool chain. I changed /etc/renderd.conf:

[renderd]...tile_dir=/data/mod_tile

Renderd saves the tiles in this directory, so that works fine. But apache still seems to try to get the tiles from the default path "/var/lib/mod_tile". I couldn't find any other setting where to tell apache2 where it can find the tiles.

I also tried to activate the option

AddTileConfig /data/mod_tile/ default

in this file "/etc/apache2/sites-available/tileserver_site.conf". But there is no difference.

The apache2 log file says "Loading tile config default at /osm/ for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png" So somewhere this default tile directory overrides the renderd.conf tile_dir. Does anyone know where I can change this?

asked 14 Apr '20, 22:25

Anders2's gravatar image

Anders2
11225
accept rate: 0%

edited 14 Apr '20, 23:08


One Answer:

0

Found out why. Maybe it helps others to solve a similar problem:

The tile directory must be changed in the [renderd]section and added in the [default] section!

[renderd] ... tile_dir=/data/mod_tile

AND

[default] ... TILEDIR=/data/mod_tile

I think the default /etc/renderd.conf file didn't contain the "TILEDIR=..." so it is not intuitive to add the path to this section as well.

answered 14 Apr '20, 23:56

Anders2's gravatar image

Anders2
11225
accept rate: 0%

edited 15 Apr '20, 00:09

Source code available on GitHub .