> в location c проксированием > proxy_set_header X-URI $request_uri; И правда: $request_uri This variable is equal to the *original* request URI as received from the client including the args. It cannot be modified. Look at $uri for the post-rewrite/altered URI. Does not include host name. Спасибо!