Advertisement
Guest User

openstack-dashboard.conf icehouse/trusty

a guest
May 23rd, 2014
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #openstack-dashboard.conf
  2. <VirtualHost *:80>
  3. ServerName dashboard.example.com
  4. <IfModule mod_rewrite.c>
  5. RewriteEngine On
  6. RewriteCond %{HTTPS} off
  7. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  8. </IfModule>
  9. <IfModule !mod_rewrite.c>
  10. RedirectPermanent / https://dashboard.example.com
  11. </IfModule>
  12. </VirtualHost>
  13. <VirtualHost *:443>
  14. ServerName dashboard.example.com
  15. SSLEngine On
  16. # Remember to replace certificates and keys with valid paths in your environment
  17. SSLCertificateFile /etc/apache2/ssl/dashboard.crt
  18. SSLCACertificateFile /etc/apache2/ssl/dashboardca.crt
  19. SSLCertificateKeyFile /etc/apache2/ssl/dashboard.key
  20. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  21.  
  22. # HTTP Strict Transport Security (HSTS) enforces that all communications
  23. # with a server go over SSL. This mitigates the threat from attacks such
  24. # as SSL-Strip which replaces links on the wire, stripping away https prefixes
  25. # and potentially allowing an attacker to view confidential information on the
  26. # wire
  27. Header add Strict-Transport-Security "max-age=15768000"
  28.  
  29. WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
  30. WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10
  31. WSGIProcessGroup horizon
  32. Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
  33. <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  34. Order allow,deny
  35. Allow from all
  36. </Directory>
  37. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement