Access /* from /foo/*.

Have an application sitting at / on server. I am looking for a rule to direct all traffic from "example.com/foo" to server/.

You can send a redirect:

when HTTP_REQUEST {
if { ([HTTP::host] eq "example.com") and ([HTTP::uri] starts_with "/foo/") } {
HTTP::respond 301 Location "http://[HTTP::host]/"
}
}

If you are trying to mask the URI, see this link.