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.
- 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.