without www does not work


I noticed that when you type (without the www) into the address bar, it does not work.

You must include the www subdomain because only works.


After configuring a HTTP 301 redirect from the bare domain to the subdomain www, the URL will also work.

For example, with this additional server block:

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        return 301 https://www.$server_name$request_uri;