The problem is here - you don't need to provide http://localhost:kPort. The first argument should be a path that will exist *underneath* that URL, example "/test/" or just "/" like you had above.