Serve website aliases over HTTP and HTTPS #38

Merged
parkel merged 4 commits from feature/website-domain-aliases into main 2026-11-21 15:39:33 +01:00
Owner

Summary

  • Let operators add or remove an additional hostname on an active website and request HTTPS for it from the account page.
  • Share the primary website's document root and PHP-FPM pool. Install alias-specific Apache virtual hosts and a dedicated Certbot lineage.
  • Reserve hostnames across primary domains and aliases, including during migration of existing accounts. Reject hostnames already mapped by Apache.
  • Keep the hostname reserved until removal completes. Remove the alias virtual hosts and reload Apache before deleting its dedicated certificate.
  • Reuse the existing local web activation and HTTPS workers. Document DNS, reverse proxy host forwarding, and HTTP-01 prerequisites.

Verification

  • Ruff lint and format checks, Django migration drift check, and all 337 Django tests passed.
  • An isolated Ubuntu run exercised the migration from an existing MariaDB account and drove activation, alias creation, HTTPS, and removal from the panel through Celery and the Unix sockets.
  • Verified PHP-FPM responses, HTTP-01 webroot routing, TLS hostname selection with certificates from a local fixture CA, and actual Certbot removal of the alias lineage. The primary website and certificate continued to work.
## Summary - Let operators add or remove an additional hostname on an active website and request HTTPS for it from the account page. - Share the primary website's document root and PHP-FPM pool. Install alias-specific Apache virtual hosts and a dedicated Certbot lineage. - Reserve hostnames across primary domains and aliases, including during migration of existing accounts. Reject hostnames already mapped by Apache. - Keep the hostname reserved until removal completes. Remove the alias virtual hosts and reload Apache before deleting its dedicated certificate. - Reuse the existing local web activation and HTTPS workers. Document DNS, reverse proxy host forwarding, and HTTP-01 prerequisites. ## Verification - Ruff lint and format checks, Django migration drift check, and all 337 Django tests passed. - An isolated Ubuntu run exercised the migration from an existing MariaDB account and drove activation, alias creation, HTTPS, and removal from the panel through Celery and the Unix sockets. - Verified PHP-FPM responses, HTTP-01 webroot routing, TLS hostname selection with certificates from a local fixture CA, and actual Certbot removal of the alias lineage. The primary website and certificate continued to work.
parkel added 4 commits 2026-11-21 15:32:29 +01:00
parkel merged commit 1306068222 into main 2026-11-21 15:39:33 +01:00
parkel deleted branch feature/website-domain-aliases 2026-11-21 15:39:34 +01:00
Sign in to join this conversation.