Network

The a2dissite command

Disables an Apache site (virtual host) by removing the link from sites-enabled.

Syntax

sudo a2dissite <sitio>Try it in the terminal →

Copy-ready examples

$ sudo a2ensite aulaEnable it first
$ sudo a2dissite aulaDisable it

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Remember to reload Apache after disabling.

Related commands

FAQ

What does a2dissite do?

It disables an Apache site by removing its sites-enabled link.

And then?

Reload Apache with systemctl reload apache2.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course