I tried to set up name based virtual hosts with different document roots as described in the apache docs. (see below). Only the first document tree is accessible from both server names. Can anyone tell me what needs to be done or corrected to get this to work?
NameVirtualHost 1.2.3.4
<VirtualHost 1.2.3.4>
DocumentRoot /path/maindocs
ServerName </Virtual Host>
<VirtualHost 1.2.3.4>
DocumentRoot /path/site2docs
SeveName site2.hostname.com
</VirtualHost>
NameVirtualHost 1.2.3.4
<VirtualHost 1.2.3.4>
DocumentRoot /path/maindocs
ServerName </Virtual Host>
<VirtualHost 1.2.3.4>
DocumentRoot /path/site2docs
SeveName site2.hostname.com
</VirtualHost>