redirect to https when behind ssl proxy