The most commonly used method as it is the most accurate way to redirect 301 a website. Watch the full video step by step for better understanding. This is the proper method of redirecting HTTP to HTTPS using nginx.
==============================================
Dont forget to like, share and Subscribe.