[Solution] How can I list the current Apache 2 virtual hosts from the command line Sometimes you need to get your virtual host file, you can get them by : a2query -s or apachectl -S