Feature: Aliases
Use case
I have a site at laurakalbag.com. I also have laurakalbag.co.uk that I want to point to the same site (perhaps it was my previous domain and I don’t want links to break). I want both accessible over TLS.
Suggested syntax
web-server enable --aliases=laurakalbag.co.uk
For multiple aliases:
web-server enable --aliases=my-first.site,my-second.site
Suggested implementation
- Add laurakalbag.co.uk and www.laurakalbag.co.uk to /etc/hosts so they resolve locally.
- Automatically request Let’s Encrypt certificates for laurakalbag.co.uk and www.laurakalbag.co.uk so they are served via TLS
Looking ahead
If/when we implement vhost support, we need to ensure we are aware of aliases and do not treat the aliases via find in /etc/hosts as vhosts.