title: Angular proxy all without one
body: <p>I have application with this <code>proxy.conf.json</code>:</p>
  <pre><code>{
      &quot;*&quot;: {
          &quot;target&quot;: &quot;http://localhost:8081&quot;,
          &quot;secure&quot;: false,
          &quot;loglevel&quot;: &quot;debug&quot;
      }
  }
  </code></pre>
  <p>Now if I want endpoints that have <code>base</code> in its path to <code>targt</code> <code>localhost</code> port <code>8082</code> how can I do that?</p>
  <p>I checked:</p>
  <pre><code>{
      &quot;*base*&quot;: {
          &quot;target&quot;: &quot;http://localhost:8082&quot;,
          &quot;secure&quot;: false,
          &quot;loglevel&quot;: &quot;debug&quot;
      },
      &quot;*&quot;: {
          &quot;target&quot;: &quot;http://localhost:8081&quot;,
          &quot;secure&quot;: false,
          &quot;loglevel&quot;: &quot;debug&quot;
      }
  }
  </code></pre>
  <p>But I don't think that it works that way.</p>
  <p>To clarify:
  I would like two rules, one for <code>base</code> and second for all but not I want rules to catch</p>
  <ol>
  <li>for example <code>/api</code>  (or <code>/base</code> or whatever)</li>
  <li>all without for example <code>/api</code> (or <code>/base</code> or whatever)</li>
  </ol>
  <p>I wanted to do it with two rules in one config.</p>