I replicated an EC2 instance on AWS because the owner lost the pem file and couldn't SSH in. It has two sites configured, but when I access this server via its public DNS, it serves me one of the sites. How does it know to pick the site it serves me? I don't see any configuration that would indicate one of the sites is the default one (something like
listen 80 default).
/etc/nginx/sites-available (in order):
default new-site site
/etc/nginx/sites-enabled (in order):