Fix httpAuth for other path than root folder

Fix HttpAuth problems for /api/token, /api/json, /stream