System configuration for OpenStack Infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
2.1 KiB

  1. # ************************************
  2. # Managed by Puppet
  3. # ************************************
  4. NameVirtualHost <%= @vhost_name %>:<%= @port %>
  5. <VirtualHost <%= @vhost_name %>:<%= @port %>>
  6. ServerName <%= @srvname %>
  7. <% if @serveraliases.is_a? Array -%>
  8. <% @serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%>
  9. <% elsif ! ['', nil].include?(@serveraliases) -%>
  10. <%= " ServerAlias #{@serveraliases}" %>
  11. <% end -%>
  12. DocumentRoot <%= @docroot %>
  13. Alias /reviews /srv/static/reviewday
  14. <Directory /srv/static/reviewday>
  15. AllowOverride None
  16. Order allow,deny
  17. allow from all
  18. <IfVersion >= 2.4>
  19. Require all granted
  20. </IfVersion>
  21. </Directory>
  22. Alias /openstack-health /srv/static/openstack-health
  23. <Directory /srv/static/openstack-health>
  24. AllowOverride None
  25. Order allow,deny
  26. allow from all
  27. <IfVersion >= 2.4>
  28. Require all granted
  29. </IfVersion>
  30. </Directory>
  31. <Directory <%= @docroot %>>
  32. Options <%= @options %>
  33. AllowOverride None
  34. Order allow,deny
  35. allow from all
  36. <IfVersion >= 2.4>
  37. Require all granted
  38. </IfVersion>
  39. </Directory>
  40. # Sample elastic-recheck config file, adjust prefixes
  41. # per your local configuration. Because these are nested
  42. # we need the more specific one first.
  43. Alias /elastic-recheck/data /var/lib/elastic-recheck
  44. <Directory /var/lib/elastic-recheck>
  45. AllowOverride None
  46. Order allow,deny
  47. allow from all
  48. <IfVersion >= 2.4>
  49. Require all granted
  50. </IfVersion>
  51. </Directory>
  52. RedirectMatch permanent ^/rechecks(.*) /elastic-recheck
  53. Alias /elastic-recheck /usr/local/share/elastic-recheck
  54. <Directory /usr/local/share/elastic-recheck>
  55. AllowOverride None
  56. Order allow,deny
  57. allow from all
  58. <IfVersion >= 2.4>
  59. Require all granted
  60. </IfVersion>
  61. </Directory>
  62. RedirectMatch temp ^/zuul(.*) http://zuul.openstack.org/
  63. ErrorLog /var/log/apache2/<%= @name %>_error.log
  64. LogLevel warn
  65. CustomLog /var/log/apache2/<%= @name %>_access.log combined
  66. ServerSignature Off
  67. </VirtualHost>