VIl du hoste flere domæner, sætter du nedenstående ind i bunden af din httpd.conf fil, nedenstående eksempel illustrerer domænerne warehouse.dk og
www.bulderdam.dk hosted på samme server :
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
ServerAdmin gurli@warehouse.dk
DocumentRoot "C:/Programmer/Apache Group/Apache/htdocs"
ServerName warehouse.dk
</VirtualHost>
<VirtualHost *>
ServerAdmin ramza@bulderdam.dk
DocumentRoot "C:/Programmer/Apache Group/Apache/htdocs/yttepigen"
ServerName
www.bulderdam.dk
</VirtualHost>