Ver orden en que usa los VirtualHosts
apache2ctl -S
- Alias/Redirect - First match wins - RewriteRule - Last match wins
In addition:
O rewrite en bloque Proxy
<Proxy *>
Redirect permanent /broken/page.html https://www.example.com/correct/page.html
RedirectMatch ^/deadstuff.+ http://www.example.com/correct/page.html
</Proxy>
ProxyPass / http://127.0.0.1:8090/ connectiontimeout=300 timeout=300
ProxyPassReverse / http://127.0.0.1:8090
Inside a <Location>, the rules of merging <Location> are followed, meaning you want your least-specific <Location> directives to come before the more specific ones. This allows the more specific ones to override the less specific directives.