Azure Application Gateway - Rewrite url path (strip prefix)

Viewed 1365

I have the following setup in my gateway:

https://example.org/office -> this maps to https://myapplication.example.org

Right now when going to https://example.org/office, Azure tries to fetch data from https://myapplication.example.org/office. I need it to remove the /office section from the uri (using a rewrite).

Sample urls - Wanted path after rewrite

https://example.org/office/files/123 -> /files/123

https://example.org/office/files/content/123 -> /files/content/123

I've tried the following rewrite but it doesn't work, I can't even save it. Do you know what I'm doing wrong?

enter image description here

I'm getting the following error when I try to save it:

Modified Path and Modified Query string does not follow supported syntax. Curly brackets have special meaning in HeaderValue field. To use a literal curly bracket please escape it with backslash().

0 Answers
Related