anchor.diff:  # DO NOT EDIT - This file is being maintained by Chef
  -<% [80, 443].each do |port| -%>
   
  -<VirtualHost *:<%= port %>>
  +<VirtualHost *:443>
     #
     # Basic server configuration
     #
     ServerName <%= node[:fqdn] %>
     ServerAlias api.openstreetmap.org www.openstreetmap.org
     ServerAdmin webmaster@openstreetmap.org
  -<% if port == 443 -%>
   
     #
     # Enable SSL
  
positive.code:   RailsEnv production
    PassengerMinInstances 3
    PassengerMaxRequests 500
  <% if port == 443 -%>
    PassengerPreStart https://www.openstreetmap.org/
  <% else -%>
    PassengerPreStart http://www.openstreetmap.org/
  <% end -%>
    SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
  
    #
  
negative.code:   RewriteRule ^/api/0\.6/(nodes|ways|relations)$ fcgi://127.0.0.1:8000$0 [P]
    RewriteRule ^/api/0\.6/changeset/[0-9]+/download$ fcgi://127.0.0.1:8000$0 [P]
  </VirtualHost>
  
  <Directory <%= node[:web][:base_directory] %>/rails/public>
    Require all granted
  