WE have simple angular 7 app.I made production Build with ng build -- href .once the build is done we placed the dist folder to the server location. application works fine but when i refresh the application the server(JBOSS) is not able to identify the location of the page ..
so we have modified the web.xml in jboss server to handle 404
<error-code>404</error-code>
<location>/xyz/index.html</location>
</error-page>
but the server is not able to idenify the path
You have to set to handle
400and403status code. Because any server doesnt understand which is root file when your refresh page or application.We need to configure this either in server rewrite rule or config file.