Trickykid says:
In order for another machine or computer on the network to know where or how to find "test1" , you need to have your DNS or hosts file specify the hostname associated with its IP, etc.
---
Yes for the first hostname (actual servername) You can build a virtual host, which is "Name Based" or "IP based virtual host"
In the case of IP based virtual hosts: The server must have a different IP address for each IP-based virtual host.
In the case of name-based virtual hosts: With name-based virtual hosting, the server relies on the client to report the hostname as part of the HTTP headers. Using this technique, many different hosts can share the same IP address.
Name-based virtual hosting is usually simpler, since you need only configure your DNS server to map each hostname to the correct IP address and then configure the Apache HTTP Server to recognize the different hostnames. Name-based virtual hosting also eases the demand for scarce IP addresses. Therefore you should use name-based virtual hosting unless there is a specific reason to choose IP-based virtual hosting.
Hope this helps,
|