How to list all enabled sites in Apache

To get list of all enabled sites in Apache, we can use the following command:

$ apachectl -S

It will list all sites which are enabled (/etc/apache2/sites-enabled).

Share

You may also like...