how to find all sites running on apache server code example
Example 1: apache show active sites
# apache2ctl -S [On Debian/Ubuntu]
# apachectl -S [On CentOS/RHEL]
OR
# httpd -S
Example 2: find apache virtualhost file
# apache2ctl -S [On Debian/Ubuntu]
# apachectl -S [On CentOS/RHEL]
OR
# httpd -S