apache: list virt hosts

To list all enabled virtual hosts on the web server, run the following command in a terminal.

# apache2ctl -S   [On Debian/Ubuntu]
# apachectl -S    [On CentOS/RHEL]
OR
# httpd -S

Last updated

Was this helpful?