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
![](https://blog.hpcs.my/wp-content/uploads/2021/07/2021-07-25-19_46_08-ubuntu@ip-172-31-27-206_-.png)
It will list all sites which are enabled (/etc/apache2/sites-enabled
).
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
).