эх поторопился я... решение то простое совсем
server {
listen 80;
server_name node01.server.tld;
location / {
include /etc/nginx/proxy_headers.conf;
proxy_pass http://node01;
}
}
server {
listen 80;
server_name node02.server.tld;
location / {
include /etc/nginx/proxy_headers.conf;
proxy_pass http://node02;
}
}
server {
listen 80;
server_name *.server.tld;
location / {
include /etc/nginx/proxy_headers.conf;
proxy_pass http://all_servers;
}
}