79146614

Date: 2024-11-01 00:02:37
Score: 2
Natty:
Report link

I assume that your .net app has a reverse proxy in front of it that allows you to you to proxy each sub path to your different applications ?

I can see two ways you can sort this problem :

  1. If the reverse proxy use X-Forwarded headers. You could use the forwarded header middleware with ForwardedHeaders. XForwardedPrefix
  2. Worst come to worst : adjust the base path of the application with app.UsePathBase(app.Configuration["EnvVariableHavingYourSubpath"]) which does require altering the reverse proxy to tell it to also use the subpath for the forwarded requests.
Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jean-Baptiste Zeller