Useful command for apache2 for http and https

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


Leave a Reply