GEOS-5783 SSL redirect to wrong path