Apache as reverse proxy for multiple destinations and one default destination

ProxyPreserveHost On

RewriteEngine On

RewriteRule ^/appX/(.*) http://127.0.0.1:8001/appX/$1 [P,L]

ProxyPassReverse /appX/ http://127.0.0.1:8001/appX

RewriteRule ^/appY/(.*) http://127.0.0.1:8002/appY/$1 [P,L]

ProxyPassReverse /appY/ http://127.0.0.1:8002/appY

Source: Apache as reverse proxy for multiple destinations and one default destination – Super User

Apache as reverse proxy for multiple destinations and one default destination was last modified: December 3rd, 2021 by Jovan Stosic

Leave a Reply