MapTiler Server behind Apache

If you have not yet installed the MapTiler Server, follow this guide first.

MapTiler Server is designed to run without any external dependency, so it can be directly accessible from the internet. In some cases, it might be beneficial to put a reverse proxy (such as Nginx or Apache) in front. It is useful especially if you want to set up additional security measures, HTTPS, serve multiple services on a single machine, load-balancing, rate-limiting, or other advanced features.

Apache’s basic configuration contains two steps. First, you need to enable the proxy module for the webserver with: a2enmod proxy_http

After that, you can set your virtual host to enable MapTiler Server on a specific domain.

The basic configuration of the Apache virtual host is:

<VirtualHost *:80>
   ...
   
   ProxyPass / http://127.0.0.1:3650/
   ProxyPassReverse / http://127.0.0.1:3650/
</VirtualHost>
sudo service apache2 restart