How to set up redirect www and non-www http to non-www https

o nginx config file

o testing config file and restart nginx