Virtual hosting allows server administrators to host multiple domains on one web server. Apache has different ways of virtual hosting. You can either host via name-based hosting or ip-based hosting. In name-based hosting all the domains share a common ip-address, while with ip-based hosting each domain can have a unique ip-address.
Virtual Host Docs
Apache Configuration Directives