

TileMill on your Web server behind a reverse proxy
source link: https://blog.mathieu-leplatre.info/tilemill-on-your-web-server-behind-a-reverse-proxy.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

TileMill on your Web server behind a reverse proxy
Tue 31 January 2012In the last version (0.9), TileMill has an additional dedicated process to serve the tiles. We had to change some bits of our server configuration.
Instead of documenting the new configuration in our internal Wiki, I prefered to share here a few technical lines (quite rough though).
We run TileMill inside a virtual machine on a server with reverse proxy rules.
Reverse Proxy configuration
Assuming your reach your TileMill virtual machine at tilemill.sillywalk.loc, with its two processes running (ports 20008 for tiles, 20009 for the application), your Apache reverse proxy configuration will be :
<VirtualHost *:80> ServerName tilemill.yourdomain.com ProxyPreserveHost On RewriteEngine on # Serve the tiles as /tiles/ RewriteCond %{REQUEST_URI} ^(/tiles.*)$ RewriteRule ^/tiles(.*) http://tilemill.sillywalk.loc:20008$1 [L,P] ProxyPassReverse /tiles http://tilemill.sillywalk.loc:20008/ # Serve the application on / ProxyPass / http://tilemill.sillywalk.loc:20009/ ProxyPassReverse / http://tilemill.sillywalk.loc:20009 </VirtualHost>
TileMill configuration
Now that tiles and application ports are reachable respectively on http://tilemill.yourdomain.com/tiles and http://tilemill.yourdomain.com/, just tell TileMill to serve its pages accordingly in its configuration, /etc/tilemill/tilemill.config :
{ "files": "/usr/share/mapbox", "server": true, "coreUrl": "tilemill.yourdomain.com:80", "tileUrl": "tilemill.yourdomain.com:80/tiles", "port": 20009, "listenHost": "0.0.0.0" }
Restart it...
sudo service tilemill restart
Done !
#tilemill, #apache, #howto - Posted in the Sys category
© Copyright 2020 by Mathieu Leplatre. mnmlist Theme
Content licensed under the Creative Commons attribution-noncommercial-sharealike License.
Recommend
-
188
README | 中文文档 Platinum Sponsors Gold Sponsors Silv...
-
64
Plex Media Server is ideal free replacement for out-dated Microsoft home media stack. To be honest it’s even more powerful and has some nice features we only dreamed about back in days....
-
6
Render your TileMill stylesheets with LandezRender your TileMill stylesheets with Landez Thu 22 March 2012TileMill is an amazing tool to design your map, and publish it. With
-
12
Deploy Django behind a reverse proxyDeploy Django behind a reverse proxy Tue 19 April 2011By default, Django will assume that your root URL is the root (/) of your domain. Using a
-
10
High Performance Load Balancer, Web Server, & Reverse Proxy
-
14
reproxy Reproxy is simple edge HTTP(s) sever / reverse proxy supporting various providers (docker, static, file). One or more providers supply information about requested server, requested url, destination url and health check ur...
-
11
Understanding and Setting up a reverse proxy server Reading Time: 3 minutesLet’s start by understanding what a reverse proxy server means and then I’ll lay down the steps for setting up such a server using our b...
-
6
Imagine that you are building an app with chat rooms and it will have thousands of users how do you think a server could handle this load ?! With Two concepts: Reverse Proxy A reverse p...
-
66
Omnibus gitlab-ce behind nginx reverse proxyHello. I think other users have this setup, and hopefully this post can document for others how to get it going! I run an omnibus gitlab-ce behind an nginx reverse proxy that per...
-
12
📍 Concurrency 👉 When it comes to making a request to the server, it usually happens that multiple users will be making requests. And Server needs to handle all the requests. This is where the important points to consider come into...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK