Fix virtualhosts that use both HTTP and HTTPS not working right.