# BindAddress: You can support virtual hosts with this option. This directive
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the <VirtualHost> and Listen directives.
BindAddress *
the bind address should be set to something
NameVirtualHost domain2.com
change that to
NameVirtualHost *
<VirtualHost doamin2.com>
serveradmin
admin@domain2.com
documentroot /home/sites/domain2.com/htdocs
servername domain2.com
errorlog /var/log/httpd/domain2.error.log
</VirtualHost>
if you call you site by domain2.com itll not work due to the spelling error in the virtual host best to change it all see my virtual host below to see how it should be done
<VirtualHost *>
serveradmin
admin@domain2.com
documentroot /home/sites/domain2.com/htdocs
servername domain2.com
errorlog /var/log/httpd/domain2.error.log
usecanonicalname off
</VirtualHost>
this set up with the namevirtualhost set to * will allow you to add multiple servers the servername directive is what they will respond too.
Hope this helps