anchor.diff:      root <%= current_path %>/public;
     }
   }
  +
  +
  +server {
  +  # enable one of the following if you're on Linux or FreeBSD
  +  listen 80; # for Linux
  +
  +  client_max_body_size 4G;
  +  server_name <%= fetch(:server_name) %>;
  +
  +  access_log <%= shared_path %>/log/nginx_access.log;
  +  error_log <%= shared_path %>/log/nginx_error.log error;
  +
  +  keepalive_timeout 5;
  +  if ($host == 'yuxian.me' ) {
  +     rewrite ^/(.*)$ http://www.yuxian.me/$1 permanent;
  +  }
  +
  +}
positive.code:   }
  }
  
  server {
    # enable one of the following if you're on Linux or FreeBSD
    listen 80; # for Linux
  
    client_max_body_size 4G;
    server_name <%= fetch(:server_name) %> www.<%= fetch(:server_name) %>;
  
    access_log <%= shared_path %>/log/nginx_access.log;
    error_log <%= shared_path %>/log/nginx_error.log error;
  
negative.code:   # path for static files
    root <%= current_path %>/public;
  
  
  
    try_files $uri/index.html $uri.html $uri @app;
  
    location @app {
  
  
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_set_header X-Forwarded-Proto http;
  