title: How to fix path error when a react build application is deployed in apache tomcat
body: <p>I have developed a react application and created a production build using "npm run build". When I put this build files in webapps folder(named ldap) of apache tomcat and start the server and go to "<a href="http://localhost:8080/ldap/" rel="nofollow noreferrer">http://localhost:8080/ldap/</a>" this link it is showing 404 errors for all static files.</p>
  
  <p>I looked in the network tab and saw that all my static files are served from <a href="http://localhost:8080/static/css/main.4e0cec6e.chunk.css" rel="nofollow noreferrer">http://localhost:8080/static/css/main.4e0cec6e.chunk.css</a> it is missing "ldap" part in the link(<a href="http://localhost:8080/ldap/static/css/main.4e0cec6e.chunk.css" rel="nofollow noreferrer">http://localhost:8080/ldap/static/css/main.4e0cec6e.chunk.css</a>)</p>
  
  <p>Is there a way to solve this error.</p>