title: Nginx returns standard pages and ignores Django urls
body: <p>I've tried everything, and I don't understand what the problem is.</p>
  <p>OS: Ubuntu 20.04.5 LTS</p>
  <p>Nginx config:</p>
  <p><code>/etc/nginx/sites-available/default</code></p>
  <pre><code>server {
          listen          80;
          server_name     ***.**.***.***;
          charset         utf-8;
          client_max_body_size 10M;
  
          location /static {
                  alias /var/django-backend/static;
          }
  
          location /media {
                  alias /var/django-backend/media;
          }
  
          location / {
                  proxy_set_header Host $http_host;
                  proxy_pass http://unix:/run/gunicorn.sock;
          }
  }
  </code></pre>
  <p>P.S. Then I run the command <code>sudo ln -sf /etc/nginx/sites-available/default /etc/nginx/sites-enabled</code></p>
  <p>Gunicorn service config:</p>
  <p><code>/etc/systemd/system/gunicorn.service</code></p>
  <pre><code>[Unit]
  Description=gunicorn daemon
  Requires=gunicorn.socket
  After=network.target
  
  [Service]
  User=root
  WorkingDirectory=/var/django-backend
  ExecStart=/var/django-backend/venv/bin/gunicorn \
            --access-logfile - \
            -k uvicorn.workers.UvicornWorker \
            --workers 3 \
            --bind unix:/run/gunicorn.sock \
            backend.asgi:application
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  <p><code>/etc/systemd/system/gunicorn.socket</code></p>
  <pre><code>[Unit]
  Description=gunicorn socket
  
  [Socket]
  ListenStream=/run/gunicorn.sock
  
  [Install]
  WantedBy=sockets.target
  </code></pre>
  <p>When I go to any endpoint, nginx returns a 404 page
  <a href="https://i.stack.imgur.com/R2wwB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R2wwB.png" alt="Nginx 404 page" /></a></p>