Advertisement
Guest User

Untitled

a guest
Jun 15th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName {Server Name}
  3. <IfModule mod_rewrite.c>
  4. RewriteEngine On
  5. RewriteCond %{HTTPS} off
  6. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  7. </IfModule>
  8. <IfModule !mod_rewrite.c>
  9. RedirectPermanent / https://{Server Name}
  10. </IfModule>
  11. </VirtualHost>
  12. <VirtualHost *:443>
  13. ServerName {Server Name}
  14. SSLEngine on
  15. SSLCertificateFile /etc/ssl/my.crt
  16. SSLCertificateKeyFile /etc/ssl/my.key
  17. SSLCertificateChainFile /etc/ssl/my.ca-bundle
  18. WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
  19. WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10
  20. WSGIProcessGroup horizon
  21. Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
  22. Alias /horizon/static /usr/share/openstack-dashboard/openstack_dashboard/static/
  23. <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  24. Order allow,deny
  25. Allow from all
  26. </Directory>
  27. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement