title: Specify base URL for Angular ClientApp served from ASP.NET Core WebApi
body: <p>I've created an ASP.NET Core project which serves an Angular app using <code>services.AddSpaStaticFiles()</code>, <code>app.UseSpaStaticFiles()</code>, <code>app.UseSpa()</code>, etc.</p>
  
  <p>But it serves the application directly from <code>http://localhost:1234</code>, while I want to serve it from <code>http://localhost:1234/angular/MyAngularApp1/</code>, while I want to use <code>http://localhost:1234/</code> for an API controller.</p>
  
  <p>How can I achieve that?</p>
  
  <p><strong>Note:</strong> I need it to work in a production build. Some solutions appear to work, but in reality they work only when you run the site from Visual Studio, and stop working once you publish/deploy to IIS or Kestrel.</p>