create new tag
, view all tags

TWiki with HTTPS

As released, TWiki 4 isn't tested with https. Here are some hints and tips you may need to get it working:

-- CrawfordCurrie - 24 Sep 2006

I got this report via e-mail:

> I am running TWiki over HTTPS on a non-standard port (in my case 4444) and it did
> not work right because several of the URLs resolved as http://. After much digging
> I found out that it was really in CGI.pm that was the issue.
> So, to fix it, you just need to add the following line to your LocalSite.cfg file so
> CGI will know you are using HTTPS:
> $ENV{HTTPS} = 'ON';
> And everything works fine.

This needs to be tested.

Some sites use http and https protocol on the same TWiki installation in order to access content from within and outside of the firewall. That is, a hard-coded $ENV{HTTPS} = 'ON' does not help. Possibly set the env variable conditionally based on the protocol? I am not sure how to detect the protocol, it is not available from the env variables. Hmm, it could be taken from {DefaultUrlHost}.

-- PTh (in Bugs:Item2754)


I think this sounds very dodgy. Apache generally does a pretty good job of working out the environment - after all, it has vastly more information available than TWiki does. If it can't work out that it's HTTPS, what can TWiki do that it can't? What is the suspected issue with CGI.pm revealed by all that digging?

-- CrawfordCurrie - 24 Sep 2006

Please note that TWikiRelease01Sep2004 works just fine in a mixed http/https environment. I am not sure what changed in TWiki 4 so that we can't claim https support anymore (besides testing).

-- PeterThoeny - 25 Sep 2006

I've been running TWiki 4 over HTTPS since Feb 2006. I never had to touch anything else than Apache configuration files to get it working.

-- StephaneLenclud - 25 Sep 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-09-25 - StephaneLenclud
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.