anchor.diff:  server {
     listen 80 <%= "default_server" unless fetch(:side_app, false) %>;
     listen [::]:80 <%= "default_server" unless fetch(:side_app, false) %>;
  -  server_name ~^(www\.)?<%= fetch(:url, "localhost") %>$;
  +  server_name ~^(www\.)?(\w+\.)?<%= fetch(:url, "localhost") %>$;
     return 301 https://<%= fetch(:url, "localhost") %>$request_uri;
   }
   <%- end -%>
  
positive.code:   listen [::]:80 <%= "default_server" unless fetch(:side_app, false) %>;
    <%- end -%>
  
    server_name ~^(www\.)?<%= fetch(:url, "localhost") %>$;
    root <%= fetch(:deploy_to) %>/current/public;
  
    location ^~ /assets/ {
  
negative.code:   <%- if fetch(:ssl, false) -%>
    listen 443 <%= "default_server" unless fetch(:side_app, false) %> ssl;
    listen [::]:443 <%= "default_server" unless fetch(:side_app, false) %> ssl;
  
    ssl on;
    ssl_certificate /etc/nginx/ssl/certificate.pem;
    ssl_certificate_key /etc/nginx/ssl/key.pem;
  
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  