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-proxy.conf.erb 904B

12345678910111213141516171819202122232425262728
  1. NameVirtualHost <%= @vhost_name %>:<%= @port %>
  2. <VirtualHost <%= @vhost_name %>:<%= @port %>>
  3. <% if @ssl == true %>
  4. SSLEngine on
  5. SSLCertificateFile <%= @ssl_path %>/certs/pl.cert
  6. SSLCertificateKeyFile <%= @ssl_path %>/private/pl.key
  7. <% end %>
  8. ServerName <%= @srvname %>
  9. <% if @serveraliases.is_a? Array %>
  10. <% @serveraliases.each do |name| %><%= " ServerAlias #{name}\n" %><% end %>
  11. <% elsif @serveraliases != '' %>
  12. <%= " ServerAlias #{@serveraliases}" %>
  13. <% end %>
  14. ProxyRequests Off
  15. <Proxy *>
  16. Order deny,allow
  17. Allow from all
  18. </Proxy>
  19. ProxyPass / <%= @dest %>/
  20. ProxyPassReverse / <%= @dest %>/
  21. ProxyPreserveHost On
  22. ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
  23. LogLevel warn
  24. CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_access.log combined
  25. </VirtualHost>