http to https

is this correct


location / {
rewrite ^ https://$server_name$request_uri? permanent;
}
 
Back
Top