fix filepath and vhost bugs