 server {
     listen 80 default_server;
     listen [::]:80 default_server;
-    server_name polymyr.com www.polymyr.com;
+    server_name *.polymyr.com;
     return 301 https://$server_name$request_uri;
 }
 

    listen 80;
    listen [::]:80;

    # listen 443 ssl http2;
    # listen [::]:443 ssl http2;

    # include snippets/ssl-api.polymyr.com.conf;
    # include snippets/ssl-params.conf;

    root /home/hakon/polymyr/polymyr-dev-api/;



server {

    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    include snippets/ssl-api.polymyr.com.conf;
    include snippets/ssl-params.conf;

    root /home/hakon/polymyr/polymyr-dev-api/;

