Så här ser en av vhost conf ut:
<VirtualHost *>
ServerAdmin asd@gmail.com
ServerName www.asd.nu
ServerAlias asd.nu
DocumentRoot /var/www/asd
<Directory /var/www/asd/>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/asd_error.log
LogLevel warn
CustomLog /var/log/apache2/asd_access.log combined
</VirtualHost>
och så här ser det ut i hosts-filen:
127.0.0.1 localhost
127.0.1.1 frallbuntu
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters