Apache virtual hosts can be
IP-based and
name-based.
I think you have name-based, it means that the webserver has only 1 IP-address, but hosts websites of 2 different domains.
In this case you must follow the
instructions of setting name-based virtual hosts.
In a nutshell:
- each website will have a separate directory, like "/var/www/htdocs/www.site1.com" and "/var/www/htdocs/www.site2.com".
- Apache config file will have "rules" about these directories/sites
- it's also recommended to create a section in the config file which will "push" the client to some certain directory/HTML page/
default site, if he entered the IP-address of your server in the browser, not the FQDN of a concrete site. (Though, not sure, maybe the 1st virtual host will serve as defalt destination).