I have a asp .net core app running on Linux using Kestrel.
It binds to the ip ok on port 80.
But the nginx reverse proxy site needs to host the app under a non-r
For me (using .NET Core 3.1) it was a bit different, using ScottC's answer it failed to find the static files as it was looking in the root of the my-app directory, not in my-app/wwwroot
This config worked for me in Startup.cs:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
if (env.IsDevelopment())
{
...
}
else
{
...
app.UsePathBase("/my-app");
}
app.UseStaticFiles();
...
}