This question about Configuration: Answered

Foswiki on HTTPS/SSL

How can I get FosWiki running HTTPS? This may be more of apache question but I'm beginner. I can bring up https://devwiki (internal) but there is no content. Am I missing directory? If so which? http://devwiki still works so I need redirect also. Thank you,

-- Main.TT - 23 May 2012

How did you configure Apache and Foswiki? Have you run bin/configure to set the {DefaultUrlHost} to https://..? There is not much to do for https in the Foswiki configuration. Note that Foswiki 1.1.5 has some enhancements to better support a mixed http and https environment. But if you are planning on completely converting to https, then that won't matter.

What events if any do you observe in the Apache log when you attempt to access the server?

-- GeorgeClark - 24 May 2012

It is the virtual machine image. I had set the DefaultURLHost - is that all that needs to be done? I can set that and check the logs.

-- TimothyTrulis - 24 May 2012

If I change the {defaulthost} to https when I navigate to https://devwiki I get an Error 107 SSL Protocol Error in Chrome and a Page cannot be displayed in IE.

-- TimothyTrulis - 24 May 2012

Hi,

I have foswiki running on http. I would like to forward everything to https. I have tried to set the {DefaultUrlHost} to https://.. but it didn't change anything.

I have tried to use apache2 redirect but foswiki stopped responding.

Could you kindly tell me what should I do to make it work?

Thank you in advance.

-- DragonBigBoss - 04 Jul 2014

Hi guys I have solved the problem finally. Now foswiki is running on ssl.

And here is what I did:

1- To be able to use the certificates. We need these files (They're default apache2 configuration files): default default-ssl

Then we need to edit and add to /etc/apache2/ports.conf before the line ( Listen 443):

NameVirtualHost *:443

Listen 443

Make a copy of the old default foswiki file (now is foswiki.something.com) and call it foswiki.something.com-ssl

Surround the whole configuration file foswiki.something.com-sll with these lines:

<IfModule mod_ssl.c>

<VirtualHost *:443>

ServerAdmin webmaster@foswiki.something.com

DocumentRoot "/var/www/foswiki"

ServerName https://foswiki.something.com

ServerAlias https://foswiki.something.com # Optional. Add to list of redirect hosts in bin/configure

Put the old foswiki configuration file lines here.

</IfModule>

Enable rewriting and ssl a2enmod rewrite a2enmod ssl

enable the 04 configuration files service apache restart

Make sure that apache2 is using a valid certificates (Self-signed are OK too).

I hope this help. Mohamed

-- DragonBigBoss - 04 Jul 2014
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.4
Status Answered
Related Topics
Topic revision: r6 - 04 Jul 2014, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy