File openstack-dashboard.conf.sample of Package openstack-dashboard

#
# OpenStack Horizon (Dashboard) Apache2 example configuration.
#
# Required Apache2 modules:
#  - mod_rewrite (If you use the port 80 -> 443 rewrite rule below)
#  - mod_ssl (If you enable the HTTPS vhost)
#


<VirtualHost *:80>
    ServerName openstack-dashboard.example.com
    ServerAdmin webmaster@openstack-dashboard.example.com

    ErrorLog /var/log/apache2/openstack-dashboard-error_log
    TransferLog /var/log/apache2/openstack-dashboard-access_log

    DocumentRoot /usr/share/openstack-dashboard/

    WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi/>
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>


<IfDefine SSL>
<IfDefine !NOSSL>

# Uncomment the following if you want to redirect all HTTP traffic to HTTPS.
# Make sure to comment out the above <VirtualHost *:80>
#RewriteEngine On
#RewriteCond %{SERVER_PORT} ^80$
#RewriteRule / https://%{HTTP_HOST}%{REQUEST_URI} [L,R]

<VirtualHost *:443>
    ServerName openstack-dashboard.example.com
    ServerAdmin webmaster@openstack-dashboard.example.com

    ErrorLog /var/log/apache2/openstack-dashboard-error_log
    TransferLog /var/log/apache2/openstack-dashboard-access_log

    SSLEngine On
    SSLCertificateFile /etc/apache2/ssl.crt/openstack-dashboard-server.crt
    SSLCertificateKeyFile /etc/apache2/ssl.key/openstack-dashboard-server.key

    DocumentRoot /usr/share/openstack-dashboard/

    WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi/>
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

</IfDefine>
</IfDefine>
openSUSE Build Service is sponsored by