anchor.diff:    listen 80;
     listen [::]:80;
   
  -  <% if @application[:ssl_support] %>
  +  <% if @application[:enable_ssl] %>
   
     listen 443 ssl;
     ssl_protocols TLSv1.2 TLSv1.1 TLSv1; #Turns off TLSv3 to protect against POODLE Attack
  
positive.code:   error_log   /var/log/nginx/<%= @app_name %>.error.log;
  
    index index.php index.htm index.html;
    <% if @application[:ssl_support] %>
    if ($http_x_forwarded_proto != "https") {
      rewrite ^(.*)$ https://$server_name$1 permanent;
    }
  
negative.code: 
    ssl_certificate /etc/ssl/<%= @application[:domains].first %>.crt;
    ssl_certificate_key /etc/ssl/<%= @application[:domains].first %>.key;
    <% if @application[:ssl_configuration][:chain] -%>
    ssl_client_certificate /etc/ssl/<%= @application[:domains].first %>.ca;
    <% end -%>
    <% end -%>
  