Here are a couple of configurations I've used with some success. These are all done in the Virtual server level of Apache configuartion.
This one proxies all requests to a webrick server, except those to your subversion repository. The only problem with using ProxyPass is it you may have problems finding your XLST stylesheet defined by your SVNIndexXSLT "/svnindex.xsl" directive.
ProxyPass /svn ! ProxyPass / http://localhost:3002/ ProxyPassReverse / http://localhost:3002/ ProxyPreserveHost On
Using rewrite, this configuration does the same as above. Rewrite is much more flexible. In this configration, Apache looks in your Virtual hosts document root if your SVNIndexXSLT directive points to a stylesheet beginning with /svn* like the default "/svnindex.xsl".
RewriteEngine On
# Logging and debugging
RewriteLog C:/www/log/apache_rewrite.log
RewriteLogLevel 4
# redirects all but subversion requests to webbrick proxy
RewriteCond %{REQUEST_URI} !^/svn(.*)
RewriteRule ^/(.*) http://localhost:3002/$1 [P,L]
This last configuration was done to smooth the conversion from an existing application that used query strings to a Nitro app. Web search engines and users may have catalogued, linked or bookmarked pages on your site and this attempts to redirect the request, so we don't get an error page.
RewriteEngine On
# Logging and debugging
RewriteLog C:/www/log/apache_rewrite.log
RewriteLogLevel 4
# rewrites and redirects "/wiki.cgi?pagename" requests
# to /wiki/show/pagename
RewriteCond %{REQUEST_URI} ^/wiki\.cgi
RewriteCond %{QUERY_STRING} ([A-Za-z0-9_]*)
RewriteRule ^/.* http://%{SERVER_NAME}/wiki/show/%1? [R,L]
# redirects all but subversion requests to webbrick proxy
RewriteCond %{REQUEST_URI} !^/svn(.*)
RewriteRule ^/(.*) http://localhost:3002/$1 [P,L]