View

Enable/Disable an apache2 site on Debian

  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

You may also like