Virtual Host Info from the Shell Posted on May 10, 2012 by bc-admin Quick way to get all of the ServerName’s values from the Apache configuration? Especially useful if VirtualHosts have been split into multiple files: cat *.conf | egrep "ServerName (.*)" | sed "s/ServerName\s\(.*\)/\1/" 1 cat *.conf | egrep "ServerName (.*)" | sed "s/ServerName\s\(.*\)/\1/"