Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am implementing a reverse proxy with the following configuration:

ProxyPass /home/ http://serverA.com/
ProxyPassReverse /home/ http://serverA.com/
<Location /home/>
    ProxyPassReverse /
    ProxyHTMLURLMap /rs/ http://paywall.com/ L
    ProxyHTMLURLMap / /home/
    RequestHeader unset Accept-Encoding

ProxyHTMLURLMap / /home/ makes sure that all links starting with / is rewritten as proxy.com/home/. However, I want URLS that start with /rs/ to be rewritten as paywall.com/.

Unfortunately, it seems that the "ProxyHTMLURLMap / /home/" configuration always takes effect. How can I set the priority of the "ProxyHTMLURLMap /rs/ http://paywall.com/ L" configuration to a higher priority? When I comment out "ProxyHTMLURLMap / /home/", rewriting the URL to paywall.com is effective.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.