Добавьте в конфиге nginx
[FONT="Courier New"]location = /robots.txt {[/FONT]
[FONT="Courier New"] if ($server_port = 443) {[/FONT]
[FONT="Courier New"] rewrite ^ /robots_ssl.txt last;[/FONT]
[FONT="Courier New"] }[/FONT]
[FONT="Courier New"]}[/FONT]
Теперь robots.txt будет отвечать для http, robots_ssl.txt для https
[FONT="Courier New"]location = /robots.txt {[/FONT]
[FONT="Courier New"] if ($server_port = 443) {[/FONT]
[FONT="Courier New"] rewrite ^ /robots_ssl.txt last;[/FONT]
[FONT="Courier New"] }[/FONT]
[FONT="Courier New"]}[/FONT]
Теперь robots.txt будет отвечать для http, robots_ssl.txt для https