I regularly use Apache to reverse proxy to other servers using ProxyPass and ProxyPassReverse. I have been doing this by top level folder. But now I have the requirement to put the site's home page on a new CMS server.
What is the best way to reverse proxy the home page only (for requests: GET / HTTP/1.1 ) without affecting every request?
I guess I can list every directory and top level page on the server with the ! directive. But surely there is a better way.
All help gratefully received.
Best Answer
ProxyPass directives are processed in order of the first match, simply list the one to the CMS last e.g.
Alternatively hope for a well behaved CMS where only the main landing page is in the root and all scripts, images and other content is in appropriate subdirectories: