If, for example
/xpto
is a context managed by mod_cluster
and
you place a rule like the following one on Apache 2.2.17 http.conf
RedirectMatch /xpto/(.*) http://www.google.com
the above rule will not work (it's ignored)
However, if you change the above rule to
RedirectMatch /abcd/(.*) http://www.google.com
and /abcd is not a context managed by mod_cluster, than the /abcd redirection to http://www.google.com will work.
Obviously there is no point in redirecting a full context. It's pointless to have
/xpto
managed my mod_cluster
and then place a rule like
RedirectMatch /xpto/(.*) http://www.google.com
on the Apache configuration.
However there are ocasions where one needs to redirect part of a context.
For example, for all english pages under /xpto
RedirectMatch /xpto/(.*)/en/(.*) http://www.underconstruction.com
The above redirection is usefull and I haven't found a way to make it work with mod_cluster/mod_alias (mod_alias is required for RedirectMatch).
Any help is welcome.
That is by design. You should use the rewrite valve in jboss to get the redirect working.