How do I setup acls to split a server by directory

I still have a lot to learn with HA Proxy. I know it’s done through acls but I’m not sure how to do it properly. Can someone show me the right way to make all of the server urls except one go to the default server and the /other url to another server? Thanks in advance!

    log local2 debug
    chroot      /var/lib/haproxy
    pidfile     /var/run/
    maxconn     4000
    user        haproxy
    group       haproxy
    stats socket /var/lib/haproxy/stats
    tune.ssl.default-dh-param 1024

    mode                    http
    option                  httplog
    log                     global
    option                  dontlognull
    option                  http-server-close
    option                  redispatch
    retries                 3
    timeout http-request    10s
    timeout queue           1m
    timeout connect         10s
    timeout client          1m
    timeout server          1m
    timeout http-keep-alive 10s
    timeout check           10s
    maxconn                 3000

frontend frontend-http
    default_backend backend-http

backend backend-http
    option forwardfor
    server web-1 check

frontend frontend-https
    bind ssl crt /etc/haproxy/ssl/default.pem crt /etc/haproxy/ssl
    default_backend backend-https

backend backend-https
    option forwardfor
    server web-1 check ssl verify none


frontend frontend-http
    acl foo path_beg -i /foo
    use_backend backend-foo if foo 
    default_backend backend-http

backend backend-foo
    option forwardfor
    server web-2 check

if url begins with /foo it will use backend-foo , others will go to default backend

Awesome, that was perfect. Thanks!