Although it might work, it's not quite what you're after.
Code:
127.0.0.1 localhost.localdomain localhost
1.2.3.4 mysite1.com
1.2.3.4 mysite2.com
::1 localhost6.localdomain6 localhost6
This needs to be setup on the machines that will connect to the server, not necessarily on the server itself.