Apache2 commands on ubuntu

You are here

Apache2 has changed the way you can deploy your websites under /etc/apache2/sites-available/ the hosted directive file names need to end in .conf eg, purencool.aust.dev.conf. Below are some commands need to run Apache2 web server from the command-line

 

To enable a website on Ubuntu.

~$ a2ensite <sitename.conf> //Creates a symlink to sites-enabled

To disable a website on Ubuntu.

~$ a2dissite <sitename.conf> //Removes the symlink to sites-enabled