How To Nginx Redirect All HTTP Request To HTTPS Rewrite 301 Rules


#1

Originally published at: https://www.cyberciti.biz/faq/linux-unix-nginx-redirect-all-http-to-https/

I have setup nginx as a secure reverse proxy server. How do I redirect all http://example.com/ requests (traffic) to https://example.com/ under nginx web server?