nuages-ssl.conf 916 Bytes
Newer Older
Christophe Siraut's avatar
Christophe Siraut committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<VirtualHost *:80>
      ServerName nuages.localdomain
      Redirect permanent / https://nuages.localdomain/
</VirtualHost>

<VirtualHost *:443>
      ServerName nuages.localdomain

      CustomLog ${APACHE_LOG_DIR}/nuages-access.log combined
      ErrorLog ${APACHE_LOG_DIR}/nuages-error.log

      Alias /doc/ /usr/share/doc/nuages/html/
      Alias /media/ /var/lib/nuages/www/media/
      Alias /static/ /var/lib/nuages/www/staticroot/

      WSGIScriptAlias / /var/lib/nuages/www/wsgi.py

      <Directory /var/lib/nuages/www>
        Order allow,deny
        Allow from all
        Require all granted
      </Directory>

      SSLEngine on
      SSLCertificateFile    /etc/ssl/nuages.localdomain.crt
      SSLCertificateKeyFile /etc/ssl/private-key.localdomain.key
      SSLCertificateChainFile /etc/ssl/startSSL/sub.class1.server.ca.pem
      SSLCACertificateFile    /etc/ssl/startSSL/ca.pem
</VirtualHost>