map $http_host $index_file {
nginx-test.loc index.php;
one.nginx-test.loc index1.php;
two.nginx-test.loc index2.php;
}
server {
listen 80;
server_name nginx-test.loc *.nginx-test.loc;
root /var/www/nginx-test;
index $index_file;
# остальные параметры
}