root@www:~# vi /etc/apache2/sites-available/virtual.host
# create a file for virtual.host
<VirtualHost *:80>
ServerName www.virtual.host
ServerAdmin webmaster@virtual.host
DocumentRoot /home/wheezy/public_html
ErrorLog /var/log/apache2/virtual.host.error.log
CustomLog /var/log/apache2/virtual.host.access.log combined
LogLevel warn
</VirtualHost>
root@www:~# a2ensite virtual.host
Enabling site virtual.host.
To activate the new configuration, you need to run:
service apache2 reload
root@www:~# service apache2 reload