Спасибо за идею
я пока сделал так
location = /robots.txt {
alias /home/..../robots.$host.txt;
}
я думал переменная $document_root будет работать внутри location, а
оказалось the $document_root variable may not be used in the "alias"
directive
чем можно ее заменить?