Enable the new VirtualHost using the a2ensite utility and restart Apache2:
sudo a2ensite mynewsite sudo /etc/init.d/apache2 restart
Similarly, use the a2dissite utility to disable sites. This is can be useful when troubleshooting configuration problems with multiple VirtualHosts:
sudo a2dissite mynewsite sudo /etc/init.d/apache2 restart
No comments:
Post a Comment