title: Lighttpd proxy path names?
body: <p>I'm trying to configure lighttpd to proxy traffic to one relative path to one proxy server, and traffic to another path to another proxy server.</p>
  
  <p>For example:</p>
  
  <pre><code>http://mydomain.com/ proxies to 123.111.111.1
  http://mydomain.com/apathname/ proxies to 123.111.111.2
  </code></pre>
  
  <p>I am flumoxed trying to figure out how to the the /apathname/ configured. This is a sample of what I have configured so far, which just directs all traffic to 123.111.111.1</p>
  
  <pre><code>$HTTP["host"] =~ "mydomain.com" {
  
      proxy.balance = "fair"
  
      proxy.server = ( 
          "" =&gt;
              (
                  ("host" =&gt; "123.111.111.1", "port" =&gt; "80" )
              ),
  
          "apathname" =&gt;
              (
                  ( "host" =&gt; "123.111.111.2", "port" =&gt; "80" )
              )
      )
  
  }
  </code></pre>
  
  <p>My apologies if this question should be on another SO site. I'm primarily a coder, not a network guy, and I know I always get the best answers on SO itself, which is why I'm asking here.</p>