server {
listen 80;
listen [::]:80;
server_name domain.com ;
location / {
root /var/www/html;
index index.html;
}
}

server {
listen 80;
listen [::]:80;
server_name aaa.domain.com ;
location / {
root /var/www/html/aaa;
index index.html;
}
}