---
title: "MapTiler Server behind Apache | Guides | Self hosting | Map server"
description: "Setting up MapTiler Server as a reverse proxy behind Apache."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MapTiler Server behind Apache

If you have not yet installed the MapTiler Server, [follow this guide](https://docs.maptiler.com/guides/on-prem/server/installation/linux/) 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](https://docs.maptiler.com/guides/self-hosting/map-server/maptiler-server-behind-nginx-with-https) 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:

```text
<VirtualHost *:80>
   ...
   
   ProxyPass / http://127.0.0.1:3650/
   ProxyPassReverse / http://127.0.0.1:3650/
</VirtualHost>
```

```text
sudo service apache2 restart
```
