components/openstack/horizon/files/openstack-dashboard-tls.conf
changeset 1765 dabcbc66ca36
parent 1760 353323c7bdc1
child 2152 1cea7a430dd7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/openstack/horizon/files/openstack-dashboard-tls.conf	Tue Mar 18 09:18:42 2014 -0600
@@ -0,0 +1,49 @@
+<IfDefine 64bit>
+    LoadModule wsgi_module libexec/64/mod_wsgi-2.6.so
+</IfDefine>
+<IfDefine !64bit>
+    LoadModule wsgi_module libexec/mod_wsgi-2.6.so
+</IfDefine>
+
+#
+# Enable Solaris Cryptographic Framework
+#
+SSLCryptoDevice pkcs11
+
+<VirtualHost *:80>
+    RedirectPermanent /horizon https://openstack.example.com/horizon
+</VirtualHost>
+
+Listen 443
+
+<VirtualHost *:443>
+    ServerName openstack.example.com
+
+    SSLEngine On
+    #
+    # For an overview on SSL with Apache see:
+    #    http://httpd.apache.org/docs/2.2/ssl/ssl_howto.html
+    # For examples on how to configure certificates and keys see:
+    #    http://www.akadia.com/services/ssh_test_certificate.html
+    #
+    SSLCertificateFile /path/to/Server_PEM-encoded_X.509_Certificate_file
+    SSLCACertificateFile /path/to/Concatenated_PEM-encoded_CA_Certificates
+    SSLCertificateKeyFile /path/to/Server_PEM-encoded_Private_Key_file
+
+    WSGIScriptAlias /horizon \
+        /usr/lib/python2.6/vendor-packages/openstack_dashboard/wsgi/django.wsgi
+    WSGIDaemonProcess horizon user=webservd group=webservd processes=3 \
+        threads=10
+
+    Alias /static /var/lib/openstack_dashboard/static/
+
+    <Directory /usr/lib/python2.6/vendor-packages/openstack_dashboard/wsgi>
+        Order allow,deny
+        Allow from all
+    </Directory>
+
+    <Directory /var/lib/openstack_dashboard/static>
+        Order allow,deny
+        Allow from all
+    </Directory>
+</VirtualHost>