Hestia shows 404 page "Page Not Found" when switching to robots.txt in Modx Revolution


I create a robots.txt file in the Modx Revo control panel as a text document. And Hestia shows a 404 page instead.

If I comment out in the WebNGINX Template modx.tpl and modx.stpl the following lines:

#location = /robots.txt {
     # allow all;
     # log_not_found off;
     # access_log off;

then robots.tht is displayed correctly.

Tell me how can I solve this problem?