Question
I'm trying to proxy two TWiki instances (one production, one test) on separate back-end machines from one Apache server. The instances function properly on the back ends, but only the production instance ("twiki") presents itself currectly from behind the proxy, while the other instance ("testtwiki") comes through but loses all graphics and style. This is usually an indication of a bad Apache configuration, and I'm sure that's the case here, but I can't seem to figure out the
right way to do it.
The production site is running from HTTPS on the back-end, and the test is running from plain HTTP.
I've tried both reverse proxy rules and rewrite rules. No matter what I do, the main problem seems to be that requests for "testtwiki" return the proper content from that instance, but then they revert to "twiki" for all the graphics and CSS requests, and this doesn't work properly.
Here is what I've tried; this works for the production side:
ProxyPass /twiki https://main-backend/twiki
ProxyPassReverse /twiki https://main-backend/twiki
This half-works, as described earlier:
RewriteRule /testtwiki$ /testtwiki/ [R]
RewriteRule /testtwiki/(.*)$ http://test-backend/twiki/$1 [P,L]
I've also tried those without the "trailing slash" fix (1st rule) and without the "proxy" and "last" flags on the second rule.
This gives the same results:
ProxyPass /testtwiki http://test-backend/twiki
ProxyPassReverse /testtwiki http://test-backend/twiki
Environment
--
JohnDeStefano - 07 Apr 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Closing this question after more than 30 days due to inactivity. Please feel free to reopen if needed.
--
PeterThoeny - 11 May 2008