Force www. and https in nginx.conf (SSL)
问题 After purchasing a SSL certificate I have been trying to force all pages to secured https and to www. https://www.exampl.com is working and secure but only if type it in exactly. www.example.com or example.com are still pointing to http. We use nginx as a proxy and need to input the rewrite there. I have SSH / root access via Putty. I have accessed nginx.conf by inputting into putty. Now what? Do I input the nginx commands on this page? Starting where the cursor is? Any command lines first?