plugin vhost and path prefix override. Closes #981, Closes #1658, Closes #1659