Domain-specific robots files should be named robots_<domain name with dots>.txt. If there's no such file for the requested domain, a default robots_default.txt is read. If nothing is found, it returns a 404 error code.
Be sure not to put a file named robots.txt in the root dir as some servers ignores the .htaccess UrlRewrite rules when the requested file exists.