title: proxy_pass return redirect in nginx
body: <p>I am just a beginner who is currently studying nginx.
  I have questions while using nginx's proxy_pass feature, so I have questions.</p>
  
  <p>My website is test.com (just example).</p>
  
  <pre><code>http://test.com/aaa (This is example address)
  </code></pre>
  
  <p>-> aaa makes return to '/login/login.cgi'</p>
  
  <p>And what I want is</p>
  
  <pre><code>http://test.com/aaa/login/login.cgi
  </code></pre>
  
  <p>But I just redirect to</p>
  
  <pre><code>http://test.com/login/login.cgi
  </code></pre>
  
  <p>And this is my nginx config (deleted unnecessary code)</p>
  
  <pre><code>server {
      location /aaa {
          proxy_pass http://192.168.0.1/;
      }
  }
  </code></pre>
  
  <p>How can I solve it?</p>
  
  <p>Thank you for reading.</p>