We are using ProxyPass to redirect all \"/r\" requests to jboss on port 18080 as follows:
ProxyPreserveHost on ProxyPass /r http://localhost:18080/redirectSe
You can get the original host from X-Forwarded-For header field.