[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

 

Leave a Reply

Your email address will not be published. Required fields are marked *