how to check if vhost is working in apache code example
Example: check on which domain apache is running
# apache2ctl -S [On Debian/Ubuntu]
# apachectl -S [On CentOS/RHEL]
OR
# httpd -S
# apache2ctl -S [On Debian/Ubuntu]
# apachectl -S [On CentOS/RHEL]
OR
# httpd -S