Welcome! Log In Create A New Profile


redirect and add client ip to URI

Posted by flypenguin 
redirect and add client ip to URI
September 30, 2020 04:30PM
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!

Edited 1 time(s). Last edit at 09/30/2020 04:30PM by flypenguin.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready