Added virtual host middleware.