None of the templates work with configuration:
Debian 10: Nginx + php-fpm, https, joomla domain.
It is necessary and remains to make a redirect from www to a domain without www via https
In my configuration, with the nginx.conf_redir file, the command works
rewrite ^ (. *) https: //% domain% $ 1 permanent;
return command works like this, without ssl:
return 301 https: //www.NEWDOMAIN.com$request_uri;
How to redirect from www to non-www domain via https? What command to add to nginx.conf_redir file?