I found the solution to the problem!
I created the “api” folder and put the index.php file in it.
<?php
$j = file_get_contents('https://2fe.ru/api/formmaker/submission');
$data = json_decode($j);
echo $j;
?>
Then I specified the path “my-domain/api/index.php” in the proxy server and it all worked.