Improved example to set up virtual hosts.