I also have a set of satellite imagery tiles in the correct directory structure /z/x/y.png that I would like to use instead of the openstreetmap tiles. How do I do this?
I can use openlayers or leaflet if necessary or if I have to for legal reasons. Right now I am using the Google Maps Javascript API, made a new custom tile overlay that points to my locally running OSM server. I get the map tiles loaded just fine. I would like to also use the aerial satellite (.png) map tiles I have as well.
If you are using Google Maps Javascript API for tile display (which is not quite common in the OSM world), ask at any google help site.
In the OSM universe there are many users with experience about openlayers.org or leafletjs.org or khtml.org … visit those websites to see some examples, maybe even for your use case.