Routes: put a site behind the gateway

A route tells the gateway which requests to accept and where to forward them. You need at least one route for each website or API you want to protect.
Adding a route
Go to Routes → Add a route.
Match
Choose which requests this route handles:
- Host names: one or more host names, e.g.
www.example.com. Use*.example.comfor all subdomains. Leave empty to match any host. - Path prefix (optional): e.g.
/apimatches/apiand/api/usersbut not/apix. The most specific route wins. - Methods (optional): e.g. only
GETandPOST. Leave empty to match all methods.
Backends
Enter the address and port of the server that should receive the traffic, e.g. 127.0.0.1:8080 for a web server on the same machine, or 10.0.0.5:80 for a server on your network. Add multiple backends to share the load.
Tick Accept a self-signed certificate from https:// backends only for a backend you own on a trusted network.
Health check (optional)
Enter a path such as /health. The gateway probes it regularly and skips any backend that fails the check.
Failover backends (optional)
Backends that only get traffic when none of the main backends is healthy. Add them one per line, in the order they should take over.
Message for visitors (optional)
A short message shown when no backend answers, e.g. "Planned maintenance until 14:00". You can add translations for Dutch, French and German.

Enabling HTTPS
After adding the route, set up a certificate for the host name. Then edit the route and turn on under HTTPS:
- Redirect http:// to https://: visitors on plain HTTP are sent to HTTPS.
- Tell browsers to use HTTPS only (HSTS): browsers remember to always use HTTPS for this site.

Managing routes
The routes list shows every route with its host, path, backends and status. Use the toggle in the Status column to enable or disable a route immediately. Click the pencil to edit, the bin to delete.
Example: putting a local IIS site behind the gateway
IIS runs on the same Windows machine on port 8080 (moved there from 80 by the installer).
- Add a route:
- Host:
www.example.com - Backend:
127.0.0.1:8080 - Tick Send the original host name to the backend (on by default — IIS needs this).
- Host:
- Add a certificate for
www.example.comon the Certificates page (Let's Encrypt or upload your own). - Edit the route and tick Redirect http:// to https://.
Requests to www.example.com now arrive at the gateway, are inspected, and are forwarded to IIS.