Progress once more...
The proxy wasn't working because 'mod_proxy_http' wasn't loaded. It is now and my rules seem to be working ok. There are some issues left though:
1. The rewritten URL is displayed instead of the original URL. Eg.
http://www.ourdomain.com/afresco becomes
http://10.0.0.5:8080/alfresco
Can I make this rewriting transparent to the users?
2. The sites on the Apache server get sucked in the catch-all rewrite rule.
In the original default site config there are some sites defined and if I add this config
# Userfriendly Subversion
Alias /usvn /opt/website/apache/usvn
<Directory "/opt/website/apache/usvn">
AllowOverride All
</Directory>
<Location "/usvn/svn">
ErrorDocument 404 default
DAV svn
Require valid-user
SVNParentPath /opt/version_control/svn/files/svn
SVNListParentPath off
AuthType Basic
AuthName "USVN"
AuthUserFile /opt/version_control/svn/files/htpasswd
AuthzSVNAccessFile /opt/version_control/svn/files/authz
</Location>
# Mantis
Alias /mantis /opt/website/apache/mantis
to the new config before the rwrite rules the request are redirected through the default rule anyway.
My Rewrite section looks like this:
RewriteRule ^/alfresco(.*) http://10.0.0.5:8080/alfresco$1 [P,L]
...
# Default: redirect everything to 10.0.0.6
RewriteRule ^/(.*) http://10.0.0.6/$1 [P,L]
Adding these rules
RewriteRule ^/mantis(.*) http://10.0.0.5/mantis$ [P,L]
RewriteRule ^/usvn(.*) http://10.0.0.5/usvn$1 [P,L]
doesn't work because it is causing an infinite loop.
How can I do it?
Thanks for your help and patience so far.