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: # 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'] %>
  
  
negative.code:   </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/chef-server-proxy.pem
    SSLCertificateKeyFile /etc/chef/certificates/chef-server-proxy.pem
  
    RequestHeader set X_FORWARDED_PROTO 'https'
  
  