This tutorial will walk you through the configuration of name-base virtual hosting using Apache2 server in Debian and Ubuntu.
Read more here
The default configuration of Apache server in Debian/Ubuntu is limited only to one website based on your IP Address. We will setup a name-based virtual hosting to have multiple websites using only one machine. After this tutorial, you will have example.com, example.net, and example.org hosted in your computer.