I\'m setting up an nginx server with an SSL.
The domain with the ssl is www.mydomain.com
I want to redirect all requests from:
http://mydomain.com, h
#If you like to redirect all "http" to "https" then add the following: server { listen 80; server_name yourdomain.com; server_name www.yourdomain.com; if ($scheme = "http") { rewrite ^(.*)$ https://yourdomain.com$1 permanent; } }