My web app has Angular and Spring Boot running the same same container. How can I forward some URLs to index.html, which is the real resource for a single page Angular app? For example, my Angular route export const routes: Routes = [ { path: '', redirectTo: '/license', pathMatch: 'full' }, { path: 'licenses', component: LicensesComponent }, { path: 'license', component: LicenseComponent } ]; When a user access http://localhost/license, Standalone Angular app will actually display index.html, and everything works fine. But if i deploy this angular app in the same container as Spring Boot app, the same URL will go to a RestController which serves /license. My Augular app does not work anymore. What should I do to solve this conflict? Continue reading...