I am looking to be able to build a script that will display all the virtual hosts running under my Apache (Ubuntu) development machine.
To date, I've not found any examples or anything close to what I want, which simply is:
"Display all virtual hosts running on this machine". (ServerName, Alias, etc).
I was thinking I might be able to read /etc/apache2/sites-available folder which houses all the conf files for the vhosts, but before going down that road, I thought I'd ask here first.