anchor.diff:      location / {
         <% if @node[:nginx][:varnish_proxy] %>
         # ofr redirects for old pages
  -      rewrite  /inspection.aspx        http://www.ofr.gov/inspection.aspx        permanent;
  +      rewrite  /inspection.aspx        /public-inspection                        permanent;
         rewrite  /Privacy/AGENCIES.aspx  http://www.ofr.gov/Privacy/AGENCIES.aspx  permanent;
         rewrite  /Catalog.aspx           http://www.ofr.gov/Catalog.aspx           permanent;
         rewrite  /AboutUs.aspx           http://www.ofr.gov/AboutUs.aspx           permanent;
  
positive.code:     
      location /robots.txt {
        root  <%= @node[:nginx][:doc_root] %>;
      }
  
      location ~* ^(/admin|/blog/wp-) {
        proxy_pass             http://varnish;
        proxy_redirect         http://varnish/ http://$host:$server_port/;
        proxy_set_header       Host $host;
        proxy_set_header       X-Real-IP $remote_addr;
        proxy_set_header       X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header       X-Client-Verify SUCCESS;
        proxy_set_header       X-SSL-Subject $ssl_client_s_dn;
        proxy_set_header       X-SSL-Issuer  $ssl_client_i_dn;
        proxy_set_header       X-Forwarded-Proto 'https';
      }
  
      location ~* ^(/images|/javascripts|/stylesheets|/uploads) {
  
negative.code:   server {
      listen <%= @node[:nginx][:listen_port] %>;
      server_name www.<%= @node[:nginx][:host_name] %> <%= @node[:nginx][:host_name] %>;
  
      <% if @node[:nginx][:varnish_proxy] %>
      if ( $host = '<%= @node[:nginx][:host_name] %>' ) {
        # rewrite ^(.*)$ http://www.ofr.gov$1; #someone fat fingered the dns...
        rewrite ^(.*)$ http://www.<%= @node[:nginx][:host_name] %>$1; # $1 contains '/foo', not 'mydomain.com/foo'
      }
      <% end %>
      # if ( $host = 'www.federalregister.gov' ) {
      #   rewrite ^(.*)$ http://www.ofr.gov$1; # $1 contains '/foo', not 'mydomain.com/foo'
      # }
  