And in the hosts file looks like this 127.0.0.1 localhost 127.0.0.1 test.officeapp.com 127.0.0.1 test.Baker.com 255.255.255.255 broadcasthost ::1 localhost
Then I ran a sudo apachectl graceful.. it restarted. Then I tried test.officeApp.com and test.Baker.com in a browser and I get the baker site when the url used is test.officeApp! test.Baker.com gives me a server not found and then when I retry the test.officeApp I get a listing of the contents of Sites. This seems really weird!
It does seem odd to me to <VirtualHost 127.0.0.1> ServerName 127.0.0.1 DocumentRoot /Users/pamelaparks/Sites </VirtualHost>
but did so because of an O'Reilly article on locating Web Site Files
It's not necessary to mess around with Netinfo Manager. Editing the file /etc/hosts is quite suffcient no matter what the comment in /etc/hosts says.
If yoo do a 'lookupd -configuration' you'll find the following lines:
LookupOrder: Cache FF DNS NI DS _config_name: Host Configuration
which means that the lookupd daemon first tries to find a hostname in the following order: - it's own cache - in flat files (FF) like /etc/hosts - DNS lookup - NetInfo - DS so /etc/hosts is in fact apparently consulted before NetInfo