Administrator

@forsit - This is happening because machine A does not properly forwards the headers to machine B, which is typical in such setup.
Nginx gives you a few options to forward this info which then machine B can fetch and use.
You can also create a new file called init-custom.php in /apps/ folder and force $_SERVER['..'] values there.