Learn how to set up a virtual host in Apache
Learn how to set up aliases in Apache
Learn how to set up redirection/rewrites in Apache
Learn how to set up port redirection and proxies
Learn how to configure Apache for a Yii2 application
Learn how to debug Apache configuration files
Learn how to create a self signed SAN certificate
Configure Apache to use SSL and your certificates
Create a CA for your self signed certificates and remove the dreaded not safe messages
Doing SSL on localhost might mean chrome will force you on to https whether you want to or not