title: DigitalOcean Nginx - Server not Found
body: <p>I bought a domain and change the nameservers for the digitalocean's.</p>
  <p>I went to <a href="https://whois.domaintools.com" rel="nofollow noreferrer">https://whois.domaintools.com</a> and the nameservers are correct.</p>
  <p>However, when I go to my website with the domain, it appears server not found.</p>
  <p>This is my Nginx configuration:</p>
  <pre><code>server {
  
      listen 443 ssl default_server;
      listen [::]:443 ssl default_server;
  
      ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
      ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
      ssl_dhparam /etc/ssl/certs/dhparam.pem;
      
      root /var/www/html;
  
  
      index index.html index.htm index.nginx-debian.html;
  
      server_name domain.com www.domain.com;
  
      location ^~ /assets/ {
          gzip_static on;
          expires 12h;
          add_header Cache-Control public;
    }
      
      location /uploads  {
          alias /root/trendcircle/server/uploads;
          try_files $uri $uri/ =404;
          autoindex on;
      }
  
      location /api { 
          proxy_http_version 1.1;
          proxy_cache_bypass $http_upgrade;
  
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection 'upgrade';
          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-Forwarded-Proto $scheme;
          proxy_set_header Access-Control-Allow-Origin '*';
          proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE';
          proxy_set_header 'Access-Control-Allow-Headers' 'X-Requested-With, Accept, Content-Type, Origin, x-access-token';
  
          proxy_pass http://localhost:8080;       
      }
      
      location / {
          proxy_http_version 1.1;
          proxy_cache_bypass $http_upgrade;
  
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection 'upgrade';
          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-Forwarded-Proto $scheme;
  
          proxy_pass http://localhost:8081; 
      }
  }
  </code></pre>
  <p>Can anybody help me?
  If you need more information just ask.</p>
  <p>Thanks in advance!</p>