There are conf files for apache2 virtual hosts
- dev.local.conf - conf file for the simple website
- dev.local-ssl.conf - conf file for the website with ssl:
- to create the cert:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mysitename.key -out mysitename.crt
To enable the host:
sudo a2ensite dev.local
Reload Apache2:
sudo service apache2 reload