Added modification for virtual hosts