mskuzzy Posted May 11, 2007 Share Posted May 11, 2007 Hi All I need to extract (list) all the domains names from and apache installation for the server for which it is installed. I am very new to Apache so any help and suggestions would be highly appreciated. I only need all the domain names Eg. www.mydomain.com and if possible the IP Address. I assume I need to extract this from the httpd.conf file from some online reading. Would this be the name server value? Thanks mwskuzzy Quote Link to comment Share on other sites More sharing options...
steviewdr Posted May 12, 2007 Share Posted May 12, 2007 Linux makes things very easy cd /etc/apache2 #(or wherever apache configs are) grep -Ri ServerName * > list_of_domainnames.txt grep -Ri ServerAlias * >> list_of_domainnames.txt That should do it. Rgds, Steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.