title: 404 Not Found The resource requested could not be found on this server! NGINX
body: <p>i am tying to a node backend and an angular app,when i navigate to the url all is see is
  404
  Not Found</p>
  <p>The resource requested could not be found on this server!
  what am i doing wronng</p>
  <p>here is my /etc/nginx/sites-available/default file</p>
  <pre><code>server {
          listen 80;
          root /var/www/html;
          server_name api.mywebsite.com
          location / {
                  proxy_pass http://localhost:3000/;
                  proxy_http_version 1.1;
                  proxy_set_header Upgrade $http_upgrade;
                  proxy_set_header Connection 'upgrade';
                  proxy_set_header Host $host;
                  proxy_cache_bypass $http_upgrade;
          }
    
  
  }
  
  server {
          listen 80;
          root /var/www/html;
          server_name admin.mywebsite.com
          location / {
                  proxy_pass http://localhost:4200/;
                  proxy_http_version 1.1;
                  proxy_set_header Upgrade $http_upgrade;
                  proxy_set_header Connection 'upgrade';
                  proxy_set_header Host $host;
                  proxy_cache_bypass $http_upgrade;
          }
    
  
  }
  
  
  
  #server {
  #       listen 80;
  #       listen [::]:80;
  #
  #       server_name example.com;
  #
  #       root /var/www/example.com;
  #       index index.html;
  #
  #       location / {
  #               try_files $uri $uri/ =404;
  #       }
  #}
  </code></pre>