Tags:
create new tag
view all tags

Question

We are attempting to configure TWiki to run alongside an application that has been developed in OpenACS and runs under AOLserver. This has gone reasonably well in my testing environment, until I introduced pound, the load balancer and reverse proxy our client uses.

When running 'configure', it warns me that the DefaultUrlHost does not match the HTTP_HOST. This seemed to make sense, since AOLserver runs only http and pound handles the SSL conversion for https. When clicking through to the newly configured TWiki, though, all the images and styles were missing.

Is there a different setting I should be using to force it to the https address to which pound answers? I have searched the support web for help on this, but every support question related to reverse proxy seems to have been solved by tweaking apache.

Thus far, I have been trying to hack the places in lib/TWiki.pm where it builds the URL. I've managed to get most things, but the "base href" tag at the top of the page persists on giving the wrong address. If nobody has the answer on how to fix the pound/aolserver/twiki issue quickly, I'd like to at least finish the hack so that I can hand this to the client.

Also, I'll be glad to email the results of 'configure' to anyone who helps out on this support request. Currently, I do not have the client's permission to post it on a public forum.

Thanks in advance for your help.

Kind regards, Justis Peters

Environment

| Server OS: | SuSE Linux Enterprise Server 9 |
Web server: AOLServer 4.0.10
Perl version: 5.8.3
Client OS: MS Windows XP
Web Browser: Firefox 1.5.0.8
Categories: Installation

-- JustisPeters - 15 Nov 2006

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.

We've got a temporary workaround by copying this line to a later section in the "new" subroutine in lib/TWiki.pm:

$this->{urlHost} = $TWiki::cfg{DefaultUrlHost};

This seems to have returned the correct value in all the places that count so far.

Now, I am hoping for advice on how to set this up the "correct way". Or, perhaps, this could become a boolean option in configure. Admins with a situation like ours could specify that it should always use the 'DefaultUrlHost' variable when building an absolute URL.

-- JustisPeters - 15 Nov 2006

Justis, I think you are leading the pack on this. It would be really good if you could capture your experiences in a Codev topic. For now, i am closing this report to try and keep the DB manageable.

-- CrawfordCurrie - 16 Dec 2006

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-12-16 - CrawfordCurrie
 
  • 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.