This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

access slippymap.html from a different machine

0

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%20Maner's gravatar image

Reshma Maner
235303136
accept rate: 0%

1

Why don't you also paste in the code you're trying to use?

(02 Jun '14, 11:39) Harry Wood

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);

(02 Jun '14, 11:46) Reshma Maner

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

(02 Jun '14, 11:54) Reshma Maner
1

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/ ).

(02 Jun '14, 20:30) RM87

What OS is this on (and what Apache version)? It doesn't sound like a specific OSM problem.

(14 Aug '14, 17:06) SomeoneElse ♦

Source code available on GitHub .