Is there an alternative to using If to extract a value from a variable in Nginx configuration files?
i.e
if ($http_referer ~* (?<=url=)([\w-.]*)(?=/) ){ set $proxied $1; rewrite (?<=/)(.+\.(css|jpg|png|gif|js)) http://$proxied/$1 redirect; }
thanks
source share