title: apache to nginx proxy_pass configuration
body: <p>I would like to convert an existing apache ProxyPass rule to nginx but am unsure how to configure timeout etc...</p>
  
  <p>My apache rule looks like</p>
  
  <pre><code>ProxyPass /ProcessRequest http://127.0.0.1:8080/MyApp/ProcessRequest timeout=180 KeepAlive=On
  </code></pre>
  
  <p>My nginx config is as below. I created a new location ProcessRequest but dont know how to confugre the equivalent to timeout=180 KeepAlive=On</p>
  
  <pre><code>server {
          #listen   80; ## listen for ipv4; this line is default and implied
          #listen   [::]:80 default_server ipv6only=on; ## listen for ipv6
  
          #root /usr/share/nginx/www/uidemo;
          root /usr/share/nginx/www;
          #root /usr/share/nginx/html
          index index.html index.htm index.php;
  
          # Make site accessible from http://localhost/
          server_name localhost;
  
          location / {
  
                  # First attempt to serve request as file, then
                  # as directory, then fall back to displaying a 404.
                  try_files $uri $uri/ /index.html;
                  # Uncomment to enable naxsi on this location
                  # include /etc/nginx/naxsi.rules
  
          }
  
          location /ProcessRequest {
  
                  proxy_pass http://127.0.0.1:8080/MyApp/ProcessRequest;
  
  
          }
  
  --- 
  ---
  </code></pre>