How to Redirect ‘http’ to ‘https’ in NGINX ?
By Fahad Ahammed
- One minute read - 70 wordsHere we will learn how to redirect all http request to https in nginx server. Assuming you have success fully installed ssl and can access https manually.
First Method:
This is the easiest one ! 🙂
Find below codes in your websites vhost.
Now make sure that code looks like below :
Second Method:
Find below codes in your websites vhost.
Now make sure that code looks like below :