Tags:
create new tag
view all tags

SID-01861: Twiki config with SSL issues

Status: Answered Answered TWiki version: 5.1.4 Perl version: 5.10.1
Category: CategorySecurity Server OS: cent os 6 Last update: 11 years ago

I have successfully installed twiki on a remote host VPS account. Took some tweaking but it works (hosts using WHM and cpanel may need to change owner from apache to the site name in /home/yoursite. yoursite is owner).

Once I got everything up and running perfectly. We acquired an SSL cert. With the cert installed I cant seem to access the twiki over port 443 even if I specify that in my conf file. Its as though any script trying to run from twiki/bin wants to run over port 80 only.

I'm assuming this is some apache config issue but I wanted to check and make sure there is nothing on the twiki side where port 443 must be specified.

-- Bryan Ino - 2014-01-22

Discussion and Answer

There is nothing special in TWiki to run it under SSL.

You should be able to access TWiki via port 80 and 443 if the cert is working properly, e.g. with

  LoadModule ssl_module modules/mod_ssl.so
  Listen 443

...and a <VirtualHost default:443> section with

  ServerName example.com:443
  SSLEngine on

...and the proper SSLCertificate* directives.

Once SSL is working properly you can configure apache with a rewrite rule to enforce SSL in the <VirtualHost *:80> section:

    # Enforce https
    RewriteEngine On
    RewriteCond &#37;{HTTPS} !=on
    RewriteRule ^(.*) https://&#37;{SERVER_NAME}/do/$1 [R,L]

-- Peter Thoeny - 2014-01-22

Yeah I figure its some apache config issue. Thanks again for your help Peter. twiki is a little tricky getting it to run under a VPS type of environment.

-- Bryan Ino - 2014-01-23

      Change status to:
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.
SupportForm
Status Answered
Title Twiki config with SSL issues
SupportCategory CategorySecurity
TWiki version 5.1.4
Server OS cent os 6
Web server apache
Perl version 5.10.1
Browser & version Chrome 32.0.1700.76 m
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2014-01-23 - BryanIno
 
  • 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.