i want to change my recived uri inside the Nginx location.
this is the url recived to my Nginx | >>> mywebsite.com/google.com/about
and its what i want | >>> cut google.com from uri and just only send /about to my proxy_pass
/about in uri is something dynamic and it can be anything
this is my config
location /google.com {
rewrite # This is where I do not know what to do
proxy_pass http://google.com;
proxy_set_header Host $host;
}