hummeltech left a comment (openstreetmap/mod_tile#27)
This is still an issue, if you do not specify a `URI` value, it will resolve to
`/`:
https://github.com/openstreetmap/mod_tile/blob/e8ac8f15d3f4d49e312acec4f674cfbb7562a84e/src/mod_tile.c#L1885-L1886
This is invalid as there currently must be at least one part in the `URI` value
(e.g. `/osm`) and thus causes the `tile_translate` function to exit when it
encounters such a configuration while attempting to determine which `handler`
(`map` config section/etc.) to be used:
https://github.com/openstreetmap/mod_tile/blob/e8ac8f15d3f4d49e312acec4f674cfbb7562a84e/src/mod_tile.c#L1098-L1116
----
#### Example log entries with 3 `renderd.conf` map sections, the second of
which having no `URI` specified:
```log
172.18.0.2:8081 172.18.0.1 - - [28/May/2025:08:01:39 -0700] "GET
/tiles/renderd-example-webp/5/4/14.webp HTTP/1.1" 404 490 "-" "Mozilla/5.0
(X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0"
```
```
[Wed May 28 08:01:39.513509 2025] [tile:debug] [pid 14:tid 25]
mod_tile.c(1051): [client 172.18.0.1:45486] tile_translate:
uri(/tiles/renderd-example-webp/5/4/14.webp)
[Wed May 28 08:01:39.513611 2025] [tile:debug] [pid 14:tid 25]
mod_tile.c(1078): [client 172.18.0.1:45486] tile_translate: testing
baseuri(/tiles/renderd-example/) name(example-map) extension(png)
[Wed May 28 08:01:39.513629 2025] [tile:debug] [pid 14:tid 25]
mod_tile.c(1078): [client 172.18.0.1:45486] tile_translate: testing baseuri(/)
name(example-map-jpg) extension(jpg)
[Wed May 28 08:01:39.513643 2025] [tile:debug] [pid 14:tid 25]
mod_tile.c(1111): [client 172.18.0.1:45486] tile_translate: Invalid URL for
tilelayer example-map-jpg without options
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/27#issuecomment-2916837323
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/mod_tile/issues/27/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving