Configure hostnames and HTTPS
Align DNS, site selection, and certificate termination.
Access needed: DNS and server configuration access.
- Decide the canonical hostname and required aliases. Make DNS point to the intended server or reverse proxy.
- Set the matching site hostname and aliases, and check the externally visible HTTP/HTTPS ports.
- Choose where TLS terminates: Zotonic or a reverse proxy. Install certificates through that component's supported mechanism.
- If using a proxy, forward the expected host and protocol information and support WebSocket connections. Keep direct backend access consistent with the deployment's access policy.
- Test the canonical URL and each alias, redirects, certificate hostname and chain, admin login, and a live browser interaction.
- Check certificate renewal and monitor expiry before it becomes an outage.
A working DNS record does not select the correct Zotonic site unless the hostname matches its configuration. A certificate working in your own browser is not proof that public clients trust it.
For a local first run, use the developer setup instructions. Production certificates, public redirects, and proxy settings need the actual deployment's reviewed configuration.