Useful command for apache2 for http and https
Disable the default Apache virtual host:
sudo a2dissite 000-default.conf
Enable the site:
sudo a2ensite example.com.conf
Restart Apache:
sudo service apache2 restart
October 22, 2018 in Tips and Tricks
Disable the default Apache virtual host:
sudo a2dissite 000-default.conf
Enable the site:
sudo a2ensite example.com.conf
Restart Apache:
sudo service apache2 restart