You have to use the plugin Vpaths -- check it out:
http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.78/lib/Perlbal/Plugin/Vpaths.pm
The config looks like this:
http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.78/conf/virtual-hosts.conf
That one is for the Vhost plugin, but Vpath is similar. Instead of using VHOST commands, you would use VPATH, like this:
VPATH ^/foo$ = foo_service
VPATH ^/bar$ = bar_service
The only suggestion I would have is that you also set a default_service on the selector service. For example, you probably will have something like this:
CREATE SERVICE vdemo
SET listen = 0.0.0.0:80
SET role = selector
SET plugins = vhosts
SET persist_client = on
SET default_service = default_service
VPATH ^/foo$ = foo_service
VPATH ^/bar$ = bar_service
ENABLE vdemo
That way, if nothing matches your paths, it will fall back to the default service.
Let us know if you have any more questions. Good luck!
--
Mark Smith
ma...@qq.is