Help us understand the problem. What is going on with this article?

【超便利なのに知らなかった】 Apache バーチャルホスト設定された一覧を一括表示

httpd -S の存在知りませんでした。

[your@server ~]$ sudo /usr/sbin/httpd -S

VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:

*:80                   is a NameVirtualHost
         default server 100.10.100.10 (/etc/httpd/conf/httpd.conf:1005)
         port 80 namevhost 100.10.100.10 (/etc/httpd/conf/httpd.conf:1005)
         port 80 namevhost aaa.com (/etc/httpd/conf.d/vhost_1.conf:2)
         port 80 namevhost bbb.com (/etc/httpd/conf.d/vhost_1.conf:9)
         port 80 namevhost ccc.com (/etc/httpd/conf.d/vhost_1.conf:17)
                 alias hoge.ccc.com
                 alias fuga.ccc.com
         port 80 namevhost ddd.jp (/etc/httpd/conf.d/vhost_2.conf:31)
         port 80 namevhost eee.jp (/etc/httpd/conf.d/vhost_2.conf:66)
         port 80 namevhost fff.jp (/etc/httpd/conf.d/vhost_2.conf:87)
*:443                  is a NameVirtualHost
         default server ssl.aaa.com (/etc/httpd/conf.d/vhost_ssl.conf:24)
         port 443 namevhost ssl.aaa.jp (/etc/httpd/conf.d/vhost_ssl.conf:24)
                 alias ssl.sample.com
                 alias ssl.example.com

*:8000                 is a NameVirtualHost
         default server pma.aaa.com (/etc/httpd/conf.d/phpMyAdmin.conf:11)
         port 8000 namevhost pma.aaa.com (/etc/httpd/conf.d/phpMyAdmin.conf:11)

全てのバーチャルホスト設定を一覧表示。

上記だと804438000ポート 3つに対してのそれぞれのバーチャルホストが(しかもエイリアス)まで
一発でどんなサービスがそのサーバに乗っかっているか一目瞭然や。。。(稼働しているかは別として)

本当今まで無知だったのが恥ずかしい。(ちなみに Apache 2.x 以上)

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away