Hi, I have up the tile server and can view Slippymap.html, if run on same machine. When I call this page from some other system, it does not work. Any idea why? I want to run the tile server on a machinde and to be able to view the tiles from another system. asked 02 Jun '14, 11:32 Reshma Maner |
Why don't you also paste in the code you're trying to use?
map = new OpenLayers.Map ("map" var newLayer = new OpenLayers.Layer.OSM("Local Tiles", "http://192.168.2.35/osm/${z}/${x}/${y}.png", {numZoomLevels: 19}); map.addLayer(newLayer);
this page works fine if I run it on the same server as map tiles server. If I copy this html page to another server and try to run it from there, it does not work
Blindly guessing that your tile server is configured to allow traffic only from localhost. In case it is running apache, you need to configure it (depending on the installed os the place to start might be: /etc/apache2/sites-enabled/ ).
What OS is this on (and what Apache version)? It doesn't sound like a specific OSM problem.