This HowTo shows you the installation of ProjectPeriod on a Ubuntu 14.04 server with Apache.

First you have to enable the SSL module for apache and to restart the server:

a2enmod ssl
/etc/init.d/apache2 restart

Now you can create the certificate files:

mkdir /etc/apache2/ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt

You have to provide ProjectPeriod in the ssl configuration file:

vi /etc/apache2/sites-available/default-ssl.con

You have to add to the virtual host:

    Alias /ProjectPeriod/css/ /var/www/ProjectPeriod/Time/templates/css/
    Alias /ProjectPeriod/js/ /var/www/ProjectPeriod/Time/templates/js/
    Alias /ProjectPeriod/fonts/ /var/www/ProjectPeriod/Time/templates/fonts/
    Alias /ProjectPeriod/rest_framework/ /usr/lib/python2.7/dist-packages/rest_framework/static/rest_framework/
    Alias /ProjectPeriod/flags/ /usr/share/flags/countries/16x11/

    WSGIScriptAlias /ProjectPeriod /var/www/ProjectPeriod/Time/
    WSGIPassAuthorization On

    <Directory /var/www/ProjectPeriod/Time>
            Order deny,allow
            Allow from all

    <Directory /usr/lib/python2.7/dist-packages/rest_framework/static/rest_framework>
            Require all granted
            Options FollowSymLinks

Enable the SSL host:

a2ensite default-ssl.conf
/etc/init.d/apache2 restart

Now you should be able to use ProjectPeriod with https.