Put it in yr httpd.conf, or better yet, an included file. (that thing is monstrous as is)
<VirtualHost *:80>
ServerName test.com
DirectoryIndex index.html dispatch.fcgi
DocumentRoot /domains/test.com/web/public
RewriteEngine On
RewriteRule ^(.*/)?.svn/ - [F,L]
ProxyPass /images !
ProxyPass /stylesheets !
ProxyPass /javascripts !
ProxyPass /examples !
ProxyPass /map_data !
ProxyPass /engine_files !
ProxyPass /javascript !
ProxyPass /feregions !
ProxyPass / balancer://test/
ProxyPassReverse / balancer://test
ProxyPreserveHost On
ErrorLog /opt/csw/apache2/var/log/test.com.error
CustomLog /opt/csw/apache2/var/log/test.com common
<Proxy balancer://test>
BalancerMember http://127.0.0.1:8000
BalancerMember http://127.0.0.1:8001
BalancerMember http://127.0.0.1:8002
BalancerMember http://127.0.0.1:8003
BalancerMember http://127.0.0.1:8004
Proxy>
</VirtualHost>