title: Webpack proxy, how to redirect when url end with specific path?
body: <p>I'd like that when i try to access this URL :</p>
  
  <p><a href="http://localhost:8080/123456/activites-digitales" rel="nofollow noreferrer">http://localhost:8080/123456/activites-digitales</a> </p>
  
  <p>Proxy redirect request to this address :</p>
  
  <p><a href="http://localhost:8082/activites-digitales" rel="nofollow noreferrer">http://localhost:8082/activites-digitales</a></p>
  
  <p>I have an api on port 8082 which return JSON.</p>
  
  <p>With my current config file it work for :</p>
  
  <p><a href="http://localhost:8080/activites-digitales" rel="nofollow noreferrer">http://localhost:8080/activites-digitales</a></p>
  
  <p>But not :</p>
  
  <p><a href="http://localhost:8080/123456/activites-digitales" rel="nofollow noreferrer">http://localhost:8080/123456/activites-digitales</a> </p>
  
  <p>123456 could be any number, it's a route parameter, what should i change in my configuration ?</p>
  
  <p>I've got the following devServer conf :</p>
  
  <pre><code>devServer: {
      hotOnly: true,
      index: 'index.html',
      port: 8080,
      proxy: {
        '/activites-digitales': 'http://localhost:8082/'
      }
  }
  </code></pre>
  
  <p>I ever tried '*/activites-digitales', '/**/activites-digitales'</p>
  
  <p>webpack and webpack-dev-server 2.3</p>