Manually building a tile server (18.04 LTS)

I’d like to set up my own tile-server and have worked through the instructions at-

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}{z}/{x}/{y}.png’.

I expect I need to change this to something like ‘http://{s}{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 file actually contains:

L.tileLayer(‘{z}/{x}/{y}.png’, {
attribution: ‘© OpenStreetMap contributors’

If that works, then to access these tiles externally then you’ll need to use a URL like “{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:)