Skip to content

Instantly share code, notes, and snippets.

@vlrmprjct
Last active June 8, 2018 11:38
Show Gist options
  • Save vlrmprjct/1a8bfe6ce02fc65192a63d7d0204e590 to your computer and use it in GitHub Desktop.
Save vlrmprjct/1a8bfe6ce02fc65192a63d7d0204e590 to your computer and use it in GitHub Desktop.
apache2 - enabling and disabling sites #apache2 #apache #debian #linux #ubuntu #webserver
# enable site
sudo a2ensite
# disable site
sudo a2dissite
# enable an apache2 module
sudo a2enmod
# e.g. a2enmod php4 will create the correct symlinks in mods-enabled to allow the module to be used. In this example it will link both php4.conf and php4.load for the user
# disable an apache2 module
sudo a2dismod
# force reload the server:
sudo /etc/init.d/apache2 force-reload
# https://blog.basilediougoant.com/2016/01/21/secure-apache-with-lets-encrypt-certificate/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment