How would I get list of all hosted domains on centos server using bash command. I am runing centos server. I need to fetch the list of hosted domains on that server. I can get it using plesk. but It would be handy to know the way to do this using bash
If you're using apache then
Will will dump out a description of how Apache parsed the configuration file, which should be the configured hosts.