• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

a2dissite Command Examples in Linux

by admin

a2dissite is a command-line utility that is part of the Apache HTTP Server on Linux systems. It is used to disable an Apache virtual host, which is a configuration that defines a group of settings that control how the Apache HTTP Server serves a specific website or group of websites.

To use a2dissite, you must pass it the name of the virtual host configuration file you want to disable. For example, to disable a virtual host with a configuration file named example.conf, you would run the following command:

$ sudo a2dissite example.conf

After running this command, the Apache HTTP Server will no longer serve the website or websites defined in the example.conf configuration file. To re-enable the virtual host, you can use the a2ensite command, which enables a virtual host that has been previously disabled using a2dissite.

It’s important to note that a2dissite and a2ensite only affect the availability of the virtual host. They do not delete or modify the virtual host configuration file itself. To permanently delete a virtual host, you will need to delete the configuration file and any associated files or directories.

a2dissite Command Examples

1. Disable a virtual host:

$ sudo a2dissite {{virtual_host}}

2. Don’t show informative messages:

$ sudo a2dissite --quiet {{virtual_host}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. “kubectl describe” Command Examples
  2. Linux OS Service ‘NetworkManager’
  3. How to Create a tmpfs Filesystem in CentOS/RHEL
  4. dbus-daemon Command Examples in Linux
  5. fallocate: command not found
  6. mons Command Examples in Linux
  7. qm wait Command Examples in Linux
  8. “git revert” Command Examples
  9. resolveip: command not found
  10. getent: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright