How Robots.txt is to be placed in the web site?
Place the file in the root directory of your website. You can use the meta element for specific parameters with regard to user agents.
https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
mine is here: ../var/html/www/robots.txt