Custom Domains
Map custom domains to your infrapage pages for a branded experience.
Custom Domains
infrapage supports custom domain mapping, allowing you to serve any page on your own domain. For example, instead of yourserver.com/p/my-project, visitors can access your dashboard at status.myproject.com.
How It Works
Custom domains work through a middleware layer that:
- Checks the incoming request's
Hostheader - Looks up a page associated with that domain in MongoDB
- If found, serves that page's content directly at the root path (
/) - If not found, processes the request normally
Setup
Configure DNS
Point your custom domain to your infrapage server. Create a CNAME or A record:
status.myproject.com CNAME infrapage.example.comOr with an A record:
status.myproject.com A 203.0.113.50Set the Domain in Page Settings
Open the page editor for the page you want to map. In the page settings, enter the custom domain (e.g., status.myproject.com).
infrapage will verify that the domain's DNS resolves to the server before saving.
Configure TLS (Recommended)
For HTTPS, set up a reverse proxy (like Caddy or nginx) in front of infrapage that handles TLS termination for your custom domain.
**Caddy** makes this especially easy with automatic HTTPS:
status.myproject.com {
reverse_proxy infrapage:8080
}DNS verification checks that the domain resolves to your server's IP address. Make sure DNS propagation is complete before setting the domain in infrapage.
Multiple Domains
Each page can have one custom domain. Different pages can have different custom domains, allowing you to serve multiple branded dashboards from a single infrapage instance.
Removing a Custom Domain
To remove a custom domain mapping, clear the domain field in the page settings. The page will continue to be accessible at its original /p/slug URL.