How to Create an Apache Virtual Host on Ubuntu (24.04 / 22.04)

August 5, 2021

Step-by-step: install Apache, create virtual hosts for multiple domains on Ubuntu 24.04 and 22.04, enable them with a2ensite, add free HTTPS with Let’s Encrypt, and fix common errors.