I’d like to set up my own tile-server and have worked through the instructions at-
https://switch2osm.org/manually-building-a-tile-server-18-04-lts/
This all works as it should and I can see the appropriate map at “http://localhost/sample_leaflet.html“.
At present on my webpages I’m useing tiles from OpenTopoMap and access these via ‘http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png’.
I expect I need to change this to something like ‘http://{s}.tile.myserver.org/{z}/{x}/{y}.png’
My question is – what do I need at the above url to serve up the tiles?
Yes - something like that. The https://github.com/SomeoneElseOSM/mod_tile/blob/switch2osm/extra/sample_leaflet.html file actually contains:
L.tileLayer(‘http://127.0.0.1/hot/{z}/{x}/{y}.png’, {
attribution: ‘© OpenStreetMap contributors’
}).addTo(map);
If that works, then to access these tiles externally then you’ll need to use a URL like “http://myserver.org/hot/{z}/{x}/{y}.png”. You can change the “hot” part to something else by editing “renderd.conf” and restarting the server.
Many thanks for the reply, it’s slowly beginning to make sense and i can now access tiles as you describe above:)