Apacheで稼働中のホストの一覧を表示するには、下記のコマンドを実行します。
httpd -S
次のような結果が表示され、どのようなサイトがhttpやhttpsで公開されているか確認できます。
VirtualHost configuration: *:80 is a NameVirtualHost default server www.aaa.com (/etc/httpd/conf.d/vhost.conf:1) port 80 namevhost www.bbb.com (/etc/httpd/conf.d/vhost.conf:1) port 80 namevhost www.ccc.com (/etc/httpd/conf.d/vhost.conf:26) port 80 namevhost www.ddd.com (/etc/httpd/conf.d/vhost.conf:45) *:443 is a NameVirtualHost default server www.aaa.com (/etc/httpd/conf.d/vhost.conf:62) port 443 namevhost www.bbb.com (/etc/httpd/conf.d/vhost.conf:62) port 443 namevhost www.ccc.com (/etc/httpd/conf.d/vhost.conf:100) port 443 namevhost www.ddd.com (/etc/httpd/conf.d/vhost.conf:138) ServerRoot: "/etc/httpd" Main DocumentRoot: "/var/www/html" Main ErrorLog: "/etc/httpd/logs/error_log" Mutex proxy: using_defaults Mutex authn-socache: using_defaults Mutex ssl-cache: using_defaults Mutex default: dir="/etc/httpd/run/" mechanism=default Mutex cache-socache: using_defaults Mutex authdigest-opaque: using_defaults Mutex watchdog-callback: using_defaults Mutex proxy-balancer-shm: using_defaults Mutex rewrite-map: using_defaults Mutex ssl-stapling-refresh: using_defaults Mutex authdigest-client: using_defaults Mutex lua-ivm-shm: using_defaults Mutex ssl-stapling: using_defaults PidFile: "/etc/httpd/run/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="apache" id=48 Group: name="apache" id=48