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 Link to comment https://forums.phpfreaks.com/topic/50950-extract-all-domain-names-name-servers-from-apache-httpdconf/ 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 Link to comment https://forums.phpfreaks.com/topic/50950-extract-all-domain-names-name-servers-from-apache-httpdconf/#findComment-251385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.