Skip to content

Instantly share code, notes, and snippets.

@Ynote
Last active July 14, 2016 11:45
Show Gist options
  • Save Ynote/6b3b4bd938e3bb4a573904fd9007d6f2 to your computer and use it in GitHub Desktop.
Save Ynote/6b3b4bd938e3bb4a573904fd9007d6f2 to your computer and use it in GitHub Desktop.
[CLI] - Enable sites with Apache
$ sudo -s # enable sudo on current user
$ a2ensite [conf-name] # enable site that are in sites-available
$ a2dissite [conf-name] # disable site that are in sites-available
$ /etc/init.d/apache2 reload # reload Apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment