问题原文
原帖链接 · codecowboy · CC BY-SA 3.0
I want to to retrieve a list of the virtual hosts which are currently loaded and listening for requests i.e not just grepping the config files.
It looks like apache2ctl -S does this but I am not 100% sure if that is just returning what is contained in the config files.
社区高分解答
原帖链接 · user9517 · CC BY-SA 3.0
The apachectl -S documentation says this
-S Show the settings as parsed from the config file (currently only shows the virtualhost settings).
So you will only see those virtualhosts that are loaded in the config which is read when httpd starts.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
