Here are a few suggestions to troubleshoot and resolve the issue:
Ensure the root URL is correctly mapped: Check the configuration of your Azure App Service to ensure that the root URL ("/") is correctly mapped to the index.html file. In some cases, the default configuration might be pointing to a different default document or not handling the root URL correctly.
Configure default documents: In Azure App Service, you can specify a list of default documents that the server should look for when a directory is requested. Make sure that index.html is included in the list of default documents in your App Service configuration. To configure default documents, go to the Azure portal, navigate to your App Service, select Configuration, and under Default documents, ensure that "index.html" is listed.
Verify the context path: If you are deploying your Spring Boot application with a context path other than the root ("/"), make sure that the context path is configured correctly in your application and in the Azure App Service settings. For example, if your application is deployed with a context path of "/myapp", you would need to access it via "www.azure.app.service.com/myapp" to see the index.html page.
Check server-side routing configuration: If you are using server-side routing in your Angular application, make sure that the routing configuration is correctly set up to handle the root URL ("/"). Ensure that your server-side routing is correctly configured to redirect requests to the index.html file.
By checking and adjusting these configurations, you should be able to ensure that the root URL ("/") properly loads the index.html page from your deployed WAR file in Azure Linux App Service.