title: Nginx authentication with auth_request module
body: <p>i have installed nginx with auth_request module enabled, but i have a problem when i am trying to setup the authentication. I want to authenticate through a php script, when a user makes request to this location, then the nginx request to a php file and if the response will be 2xx then authentication true if the response will be 4xx then authentication failed.</p>
  
  <p>This is what i made for now and it is working perfect this thing but i dont know how to pass arguments on the php file like username password for example: 
  <a href="http://example.com/live/index.php?username=test&amp;password=password" rel="noreferrer">http://example.com/live/index.php?username=test&amp;password=password</a></p>
  
  <p>Here is the configuration which is working without these arguments.</p>
  
  <pre><code>location /live {
           auth_request /http_auth;
      }
  
      location /http_auth {
          proxy_pass_request_body off;
          proxy_set_header Content-Length "";
          proxy_set_header X-Original-URI $request_uri;
          proxy_pass http://127.0.0.1/login.php;
  }
  </code></pre>
  
  <p>Thank you</p>