NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
  <% if ssl == true %>
  SSLEngine on
  SSLCertificateFile <%= ssl_path %>/certs/pl.cert
  SSLCertificateKeyFile <%= ssl_path %>/private/pl.key
  <% end %>
  ServerName <%= srvname %>
<% if serveraliases.is_a? Array %>
<% serveraliases.each do |name| %><%= "  ServerAlias #{name}\n" %><% end %>
<% elsif serveraliases != '' %>
<%= "  ServerAlias #{serveraliases}" %>
<% end %>
   ProxyRequests Off
   <Proxy *>
     Order deny,allow
     Allow from all
   </Proxy>
   ProxyPass        / <%= dest %>/
   ProxyPassReverse / <%= dest %>/
   ProxyPreserveHost On 

   ErrorLog /var/log/<%= scope.lookupvar("apache::params::apache_name") %>/<%= name %>_error.log
   LogLevel warn
   CustomLog /var/log/<%= scope.lookupvar("apache::params::apache_name") %>/<%= name %>_access.log combined

</VirtualHost>


NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
  <% if ssl == true %>
  SSLEngine on
  SSLProtocol all -SSLv2 -SSLv3
  SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:!RC4:+HIGH:+MEDIUM:-LOW
  SSLCertificateFile <%= ssl_path %>/certs/pl.cert
  SSLCertificateKeyFile <%= ssl_path %>/private/pl.key
  <% end %>
  ServerName <%= srvname %>
<% if serveraliases.is_a? Array %>
<% serveraliases.each do |name| %><%= "  ServerAlias #{name}\n" %><% end %>
<% elsif serveraliases != '' %>
<%= "  ServerAlias #{serveraliases}" %>
<% end %>
   ProxyRequests Off
   <Proxy *>
     Order deny,allow
     Allow from all
   </Proxy>
   ProxyPass        / <%= dest %>/
   ProxyPassReverse / <%= dest %>/
   ProxyPreserveHost On 

   ErrorLog /var/log/<%= scope.lookupvar("apache::params::apache_name") %>/<%= name %>_error.log
   LogLevel warn
   CustomLog /var/log/<%= scope.lookupvar("apache::params::apache_name") %>/<%= name %>_access.log combined

</VirtualHost>


Disable SSLv2 and SSLv3 to fix BEAST, POODLE, RC4 issues
Disable SSLv2 and SSLv3 to fix BEAST, POODLE, RC4 issues