Skip to content

Enable/Disable an apache2 site on Debian

  • by
  1. a2ensite mysite
  2. # ‘mysite’ refers to /etc/apache2/sites-available/mysite
  3. # This creates the symbolic link between configuration files in /etc/apache2/sites-available and /etc/apache2/sites-enabled
  4. a2dissite mysite # disable the site