Mar 27 2015

TileStream behind Apache reverse proxy

Published by at 0929h under SL In General

If you’ve got the issue, then you know why this could matter. If not, then just enjoy consuming Mapbox tiles from somewhere in the world.

Craft a subdomain-accessed reverse proxy with this sort of phrase in Apache httpd.conf on a web server otherwise known as your.host

<VirtualHost   tile.your.host:80>
   ServerName  tile.your.host
   ProxyPass / http://localhost:1111/
   ProxyPassReverse / http://localhost:1111/
</VirtualHost>

Of course, you’ll need to tidy up name resolution for the newly created subnet alias for your server. Once that name resolves, then launch TileStream in some manner like

$ ./index.js --config config.json

With reference to something like this TileStream config.json

{
   "host":  "tile.your.host",
   "tileHost":  "tile.your.host",
   "tilePort":  11111,
   "uiPort":  11111,
   "tiles":  "/your/local/path"
}

For an organization that wishes to share good imagery via TileStream without allowing trivial access to bulk downloads, this can present an issue. TileStream appears rather promiscuous with its download button.

No responses yet

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.