This information is everywhere and is by no means anything special. But as a recent convert to apache from IIS I need somewhere to put this as reference:
To setup multiple hosts in apache, add the following into http.conf
<VirtualHost 10.1.2.3> DocumentRoot /www/vhost1 ServerName www.my-dom.com </VirtualHost>
Full details over on apache.org
I’ve also been creating symlinks to my user’s public_html folder, a symlink is kindof a shortcut or virtual directory equivilent in windows/iis. The following command line code is used for creating symlinks:
ln -s /home/your_user_name/public_html/folder /srv/www/htdocs/folder"
This creates a shortcut from the Apache htdocs to the users personal html docs.