I want to redirect the url for the following scenario in Nginx.
My domain name *.xyz.com
If the user send the request from
reuest url -> abc.xyz.com
abc
is not constant name.
Xyz.com
is my domain and anything before the .xyz.com
is redirecting to xyz.com/<abc>
in the backend
In the backend request goes to
abc.xyz.com
to xyz.com/<abc>
But in the browser Url will be same.
i.e. abc.xyz.com