Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

redirect and add client ip to URI

$
0
0
hi community, i have a somewhat weird question, but we need this for a workaround:

- I want to call: http://my-nginx-instance
- it should answer with: HTTP 301 -> http://final-url/?client_ip=IP_OF_THE CLIENT (with IP_OF… being replaced by the caller’s ip of course)


is that possible? if yes, could someone provide a snippet? please dont ask why, it’s a workaround for an internal app’s limitation.


thanks in advance!
axel.

Viewing all articles
Browse latest Browse all 4759

Trending Articles