From 0b12ea5a44e07a3118fd7d94de0d72304a931e00 Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Sat, 21 Nov 2026 15:32:02 +0100 Subject: [PATCH] Document website alias DNS and HTTPS setup --- docs/deployment.md | 28 ++++++++++++++++++++++++++++ docs/development.md | 10 +++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/deployment.md b/docs/deployment.md index f546e78..ccbd168 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -221,6 +221,34 @@ the managed sites. Use **Change storage limit** on the deployed account to apply the hosting plan's default or choose a per-site value. [Website storage quotas](development.md#apply-a-website-storage-limit) +### Serve additional hostnames on a website + +After activating a website, use **Add alias** on the hosting account. +The alias uses the same document root and PHP-FPM pool as the primary domain. +Operators need **Can manage website aliases** and permission to view hosting +accounts. Apache hostname matching selects the virtual host for the alias. +[Apache name-based virtual hosts](https://httpd.apache.org/docs/current/en/vhosts/name-based.html) + +Point the alias to the same address or reverse proxy as the primary +domain. Add the DNS records where that hostname is managed. A reverse proxy +must forward the alias in the original Host header. Only use hostnames that +you control. The panel reserves each hostname for one website and checks +existing Apache hostnames when activating an alias. + +Once the alias is active, select **Enable HTTPS** with the permissions and +local HTTPS worker described below. The alias uses its own Certbot lineage. +HTTP-01 must reach the web node for the alias hostname. Certbot renews it +using the same renewal hook as the primary website. + +Selecting **Remove** disables the alias virtual hosts and deletes the +dedicated Certbot lineage. Check the result in the account before reusing +the hostname. Remove aliases before deleting an account or editing its +primary domain. An unmatched hostname can still reach Apache's default virtual +host while its DNS points at the node. Use a default virtual host that +serves no tenant content when unknown hosts should be rejected. +[Apache default virtual host](https://httpd.apache.org/docs/current/en/vhosts/name-based.html#defaultvhost) ยท +[Deleting a Certbot certificate](https://eff-certbot.readthedocs.io/en/stable/using.html#deleting-certificates) + ## Enable HTTPS for hosted websites Once a site is active, obtain the website certificate with Certbot on the diff --git a/docs/development.md b/docs/development.md index 00536ad..9867465 100644 --- a/docs/development.md +++ b/docs/development.md @@ -810,7 +810,15 @@ The status command reads local state. It exits with code 0 for `configured`, code 2 for the other report states, and code 1 if it cannot read the manifest or inspect the node. Use an HTTP request to verify the site's response as well. -### Enable HTTPS for a hosted website +#Website aliases reuse the activation and HTTPS sockets. The web node stores +alias reservations under `/var/lib/coulobre/web-node/aliases/` and creates +separate Apache virtual hosts that share the primary site's document root and +PHP-FPM socket. Existing website deployment manifests use the primary domain +as their identity. + +See [managing aliases in the panel](deployment.md#serve-additional-hostnames-on-a-website). + +## Enable HTTPS for a hosted website Apply the web deployment manifest first. Use Certbot to obtain and renew the website's Let's Encrypt certificate. The HTTP-01 challenge requires