fixing the ssl redirect in a better way
updting the nginx config by remove duplicate protocols configuration