SID-01861: Twiki config with SSL issues
| Status: |
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 %{HTTPS} !=on
RewriteRule ^(.*) https://%{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
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.