That did not work either. Upon further testing, this also does not work:
server_name DOMAIN.com www.DOMAIN.com;
rewrite ^ https://www.DOMAIN.com$request_uri? permanent;
Its supposed to redirect Non-www & non https to https & www.
I doubt its the code here really.. Other files that I am not looking at possibly?
return 301 https://www.example.com$request_uri;
This also does not work again (no idea why). All other settings files are untouched.