title: nginx: emerg: unknown "request_url" variable
body: <p>I am trying to configure an Nginx Server on Ubuntu on a Droplet at Digital Ocean.</p>
  
  <p>When I run <code>sudo nginx -t</code>, I am getting an error</p>
  
  <p><code>[emerg] unknown "request_url" variable</code> and also says something about the etc/nginx/nginx.conf file but I don't see "request_url" being used anywhere in the below file.</p>
  
  <p>Here's my <code>default</code> config file</p>
  
  <pre><code># Enforce HTTPS
  server {
      listen 80;
      listen [::]:80;
      return 301 https://$host$request_uri;
  }
  
  # Proxy all requests to Node
  server {
      # Enable HTTP/2
      listen 443 ssl http2;
      listen [::]:443 ssl http2;
      server_name api.storybook.space;
  
      # Use the Let's Encrypt certificates
      ssl_certificate /etc/letsencrypt/live/api.example.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/api.example.com/privkey.pem;
  
      # Include the SSL configuration from cipherli.st
      include snippets/ssl-params.conf;
  
      location / {
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-NginX-Proxy true;
          proxy_pass http://localhost:5000/;
          proxy_ssl_session_reuse off;
          proxy_set_header Host $http_host;
          proxy_cache_bypass $http_upgrade;
          proxy_redirect off;
      }
  }
  </code></pre>
  
  <p>I've tried searching for answers about this, but none could solve my problem.</p>
  
  <p>Can anyone please point me in the right direction?</p>