appEngine nginx not able to redirect to index.html when the url contains "-" dash
I have a problem with gcp AppEngine nginx. I am using the AppEngine flex env
for running my angular application.
My application use ng-route to control the flows. I have a url of the
in which p2 might contain dash "-" in the url.
I have default appEngine nginx configuraiton. which I believe will return
the route to index.html which is the entry.
Now I discover if the p2 contains dashes "-" e.g., AB-cd-1242, the page
returns a whiteLabel error page 404.
if it is a string without "-" it no problem.
I have tried the following ways:
add Nginx-app.conf file with the following configure: