My approach is consistent: the master request is handled by the reverse proxy and must keep the information from its client. The sub-request is sent by the reverse proxy and has the local IP address.