server {
listen 80;
server_name domain.com;
location / {
root /var/www/path/to/;
...
location /project1/ {
root /var/www/path/to/project1/;
...
}
location /project2/ {
root /var/www/path/to/project2/;
...
}
}
}