Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName {Server Name}
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- </IfModule>
- <IfModule !mod_rewrite.c>
- RedirectPermanent / https://{Server Name}
- </IfModule>
- </VirtualHost>
- <VirtualHost *:443>
- ServerName {Server Name}
- SSLEngine on
- SSLCertificateFile /etc/ssl/my.crt
- SSLCertificateKeyFile /etc/ssl/my.key
- SSLCertificateChainFile /etc/ssl/my.ca-bundle
- WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
- WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10
- WSGIProcessGroup horizon
- Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
- Alias /horizon/static /usr/share/openstack-dashboard/openstack_dashboard/static/
- <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
- Order allow,deny
- Allow from all
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement