NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

answered 14 Apr '20, 23:56

Anders2's gravatar image

Anders2
11225
accept rate: 0%

edited 15 Apr '20, 00:09

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×105
×80
×20

question asked: 14 Apr '20, 22:25

question was seen: 2,651 times

last updated: 15 Apr '20, 00:09

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum