Puppet modules for deploying Apache in 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.

vhost-default.conf.erb 899B

1234567891011121314151617181920212223242526
  1. # ************************************
  2. # Default template in module openstackinfra-httpd
  3. # Managed by Puppet
  4. # ************************************
  5. NameVirtualHost <%= @vhost_name %>:<%= @port %>
  6. <VirtualHost <%= @vhost_name %>:<%= @port %>>
  7. ServerName <%= @srvname %>
  8. <% if @serveraliases.is_a? Array -%>
  9. <% @serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%>
  10. <% elsif @serveraliases != '' -%>
  11. <%= " ServerAlias #{@serveraliases}" -%>
  12. <% end -%>
  13. DocumentRoot <%= @docroot %>
  14. <Directory <%= @docroot %>>
  15. Options <%= @options %>
  16. AllowOverride None
  17. Order allow,deny
  18. allow from all
  19. </Directory>
  20. ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
  21. LogLevel warn
  22. CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_access.log combined
  23. ServerSignature Off
  24. </VirtualHost>