title: Using nginx as a reverse proxy to IIS server
body: <p>I have multiple ASP.NET applications running on a single IIS server with different ports for each application.</p>
  
  <p>I have installed nginx on the same server so that my clients can access all my applications only using port 80.</p>
  
  <p>Nginx is running all right on port 80. My individual ASP.NET applications are also up and running.</p>
  
  <p>I made these changes in nginx conf file</p>
  
  <pre><code>    location /students/ {
          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://127.0.0.1:84;
      }
      location /registration/ {
          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://127.0.0.1:82;
      }
  </code></pre>
  
  <p>Then I restarted nginx and typed the url <a href="http://127.0.0.1/students/">http://127.0.0.1/students/</a> in my browser. Nginx served a 404 page.</p>
  
  <p>I made no other changes to the conf file.</p>
  
  <p>What I am doing wrong?</p>