title: Cannot get React Router working with Webpack and historyApiFallback when server under '/path'
body: <p>I am struggling to get my app set up properly.</p>
  
  <p>It is React app with React router, running inside docker behind Traefik proxy. </p>
  
  <p>The app is served under: <code>myapp.localhost/boilerplate</code>. I had issues to make it work under this path but changing <code>output.publicPath</code> and <code>devServer.publicPath</code> to <code>/boilerplate</code> made it work so main page is loading correctly.</p>
  
  <p>However, I cannot get React Router working in this setup. In Webpack config I have enabled :<code>devServer.historyApiFallback</code>, however it does not work. The webpack output is already a bit alerting:</p>
  
  <pre><code>app-boilerplate  webpack output is served from /boilerplate 
  app-boilerplate Content not from webpack is served from /srv/www/boilerplate/src 
  app-boilerplate 404s will fallback to /index.html
  </code></pre>
  
  <p>I think it should already know that 404 will fallback to /boilerplate/index.html and that is why I keep getting 404 on any subroute.</p>
  
  <p>What should be done? I suppose in the dev environment it has to be done in Webpack conf (but probably could also be done in Traefik?) and for production, it can be then handled by the reverse proxy.</p>
  
  <p>I will appreciate any help!</p>