Good day to all!
Please tell me something is not visible obvious solutions. Is it possible to proxy the incoming request to NGINX depending on where the request came from ( $http_referer
)?
In other words, let's say a request came to test-domain.com
, with domain10.com
then the request should be 172.20.20.10
at 172.20.20.10
. If you came from domain11.com
then it will be proxied at 172.20.20.11
. Here is a dependency.
Is it possible to parse the number from the url of the referrer using NGINX tools and then substitute it into the ip address? Or do you have to call some external script that will handle all this?
Thank.