This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Move PathBase from Kestrel to Middleware #236
Closed
Description
Right now UseIISIntegration takes the ASPNETCORE_APPL_PATH and adds it to the prefix registered with Kestrel so that Kestrel will split the path and path base. @davidfowl doesn't like the path base feature in Kestrel because it does not reject request from other paths. Assuming the feature gets removed, UseIISIntegration should handle the path logic via middleware instead.
Create a new middleware that's a combination of MapPath and UseWhen that splits path into path and path base like map, but continues the pipeline like UseWhen. It should also undo at the end like MapPath. This should be an independent middleware (UsePathBase("/base")) because Nginx has the same problem.