added option to define virtual hosts