title: Welcome to Nginx page displays instead of actual webpage
body: <p>I am working on a Ruby on Rails project on an Ubuntu server. Whenever I try and access the app, I am always greeted with:</p>
  
  <blockquote>
    <p>Welcome to nginx!</p>
    
    <p>If you see this page, the nginx web server is successfully installed and working. Further configuration is required.</p>
  </blockquote>
  
  <p>Here is my code from the "sites_enabled" directory:</p>
  
  <pre><code>pstream unicorn_site {
      server unix:/tmp/unicorn.site.sock fail_timeout=0;
  }
  
  server {
      listen 80;
  
      client_max_body_size 4G;
      keepalive_timeout 10;
  
      error_page 500 502 504 /500.html;
      error_page 503 @503;
  
      server_name http://[ip_address];
      root /data/site/current/public;
      try_files $uri/index.html $uri @unicorn_site;
  
      location @unicorn_site {
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header Host $http_host;
          proxy_redirect off;
  
          proxy_pass http://unicorn_site;
          # limit_req zone=one;
          access_log /var/log/nginx/site.access.log;
          error_log /var/log/nginx/site.error.log;
      }
  
      location ^~ /assets/ {
          gzip_static on;
          expires max;
          add_header Cache-Control public;
      }
  
      location = /50x.html {
          root html;
      }
  
      location = /404.html {
          root html;
      }
  
      location @503 {
          error_page 405 = /system/maintenance.html;
          if (-f $document_root/system/maintenance.html) {
              rewrite ^(.*)$ /system/maintenance.html break;
          }
          rewrite ^(.*)$ /503.html break;
      }
  
      if ($request_method !~ ^(GET|HEAD|PUT|PATCH|POST|DELETE|OPTIONS)){
          return 405;
      }
  
      if (-f $document_root/system/maintenance.html) {
          return 503;
      }
  }
  </code></pre>
  
  <p>I am not sure what the problem is as the app seems to have everything it need to be working correctly. I can provide any part of the code anyone needs. Help is much appreciated.</p>
  
  <p>EDIT: I am also always getting this error when I attempt to load the page:</p>
  
  <blockquote>
    <p>2018/06/15 15:39:10 [warn] 15280#0: server name "<a href="http://[ip_address]" rel="nofollow noreferrer">http://[ip_address]</a>" has suspicious symbols in /etc/nginx/sites-enabled/site:14</p>
  </blockquote>
  
  <p>EDIT 2: Here is nginx.conf</p>
  
  <pre><code>user www-data;
  worker_processes 4;
  pid /run/nginx.pid;
  
  events {
      worker_connections 768;
  }
  
  http {
  
      ##
      # Basic Settings
      ##
  
      sendfile on;
      tcp_nopush on;
      tcp_nodelay on;
      keepalive_timeout 65;
      types_hash_max_size 2048;
  
      include /etc/nginx/mime.types;
      default_type application/octet-stream;
  
      ##
      # Logging Settings
      ##
  
      access_log /var/log/nginx/access.log;
      error_log /var/log/nginx/error.log;
  
      ##
      # Gzip Settings
      ##
  
      gzip on;
      gzip_disable "msie6";
  
      ##
      # Virtual Host Configs
      ##
  
      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*;
  }
  </code></pre>