anchor.diff:  <% if node['chef_server']['webui_enabled'] -%>
   # Server Proxy for WebUI
   <VirtualHost *:444>
  -  ServerName <%= @params['server_name'] %>
  -  ServerAlias <% @params['server_aliases'].each do |a| %><%= "#{a}" %> <% end %>
  +  ServerName <%= @params[:server_name] %>
  +  ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
   
     DocumentRoot <%= node['chef_server']['doc_root'] %>
   
  
positive.code:   ExpiresByType application/javascript "access plus <%= node['chef_server']['proxy']['js_expire_hours'] %> hours"
  
    <Proxy balancer://chef_server>
      BalancerMember http://127.0.0.1:<%= node['chef_server'][port] %>
      ProxySet maxattempts=2
      Order deny,allow
      Allow from all
    </Proxy>
  
    LogLevel info
    ErrorLog <%= @params['log_dir'] %>/<%= @params['name'] %>-error.log
    CustomLog <%= @params['log_dir'] %>/<%= @params['name'] %>-access.log combined
  
    SSLEngine On
    SSLCertificateFile /etc/chef/certificates/<%= @params['server_name'] %>.pem
    SSLCertificateKeyFile /etc/chef/certificates/<%= @params['server_name'] %>.pem
  
    RequestHeader set X_FORWARDED_PROTO 'https'
  
  
negative.code: # Server Proxy for API
  <VirtualHost *:443>
    ServerName <%= @params[:server_name] %>
    ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
  
    DocumentRoot <%= node['chef_server']['doc_root'] %>
  
  