server {
  listen 80 default_server;

  location /__varnish_check__ {
    # This is the varnish upstream defined in the www.gov.uk vhost
    proxy_pass http://varnish;
  }

  location / {
    return 444;
  }
}

<% unless scope.lookupvar('::aws_migration') %>
server {
  listen              443 default_server ssl;
  ssl_certificate     /etc/nginx/ssl/www.gov.uk.crt;
  ssl_certificate_key /etc/nginx/ssl/www.gov.uk.key;
  include             /etc/nginx/ssl.conf;

  location /__varnish_check__ {
    # This is the varnish upstream defined in the www.gov.uk vhost
    proxy_pass http://varnish;
  }

  location / {
    return 444;
  }
}
<%- end %>

server {
  listen 80 default_server;

  location /__varnish_check__ {
    # This is the varnish upstream defined in the www.gov.uk vhost
    proxy_pass http://varnish;
  }

  <%- if scope.lookupvar('::aws_migration') %>
  # Required for L7 ALB
  location = /_healthcheck {
    return 200;
  }
  <%- end %>
  location / {
    return 444;
  }
}

<% unless scope.lookupvar('::aws_migration') %>
server {
  listen              443 default_server ssl;
  ssl_certificate     /etc/nginx/ssl/www.gov.uk.crt;
  ssl_certificate_key /etc/nginx/ssl/www.gov.uk.key;
  include             /etc/nginx/ssl.conf;

  location /__varnish_check__ {
    # This is the varnish upstream defined in the www.gov.uk vhost
    proxy_pass http://varnish;
  }

  location / {
    return 444;
  }
}
<%- end %>

Add default healthcheck for cache
Add default healthcheck for cache

Related to 9996b3781963c715192b9d34a99a2009607c9d20

The cache machines have their own default config, so also change it
here.
