Using x-forwarded-proto to redirect ssl requests