Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL4u5 Linux
Web server: Apache 2.0.52
Perl version: 5.8.5
Client OS: OS X, RHEL4
Web Browser: Firefox 2
Categories: Installation

-- JohnDeStefano - 07 Apr 2008

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-05-11 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.