Need a function to URL path rewriting in Application Gateway
Currently, I know Azure Application Gateway has a function for redirection of URL path based.
Now, I need a function for rewriting URL path during redirecting a request to backend server.
For example, When Application Gateway received a HTTP request to http://www.contoso.com/test/, it redirects the request as /images/ to backend server.
In other words, I want to set a URL path for backend server in PathRuleConfig in Application Gateway.
URL rewrite for Application Gateway v2 is currently in public preview! With this, you can now rewrite URL path and query string parameters based on a condition. The condition will be on request or response parameters.
Also, you get the ability to choose the routing to a backend pool based on the original URL or the rewritten URL.
Chad Vogel commented
Takeshi, instead of using the application gateway we used a small Linux Nginx server - maybe this would work for you