This might be possible to implement via the nginx reverse proxy, eg. by modifying the Hosts: header.
Hosts: