title: nginx/fastcgi 504 gateway error, increasing fastcgi_read_timeout isn't helping
body: <p>I need the timeout to be high so I can use a debugger on my source code.  It's getting passed to fastcgi from nginx correctly, but <strong>always</strong> times out after 60 seconds.  I've changed as many timeout parameters as I could find, restarted nginx and fast-cgi after every change and nothing worked.</p>
  
  <p>I see most users point questions like this to <a href="https://stackoverflow.com/questions/561946/how-do-i-prevent-a-gateway-timeout-with-nginx">How do I prevent a Gateway Timeout with FastCGI on Nginx</a>.  But that solution did not work for me.</p>
  
  <p>The parameters I've increased are:</p>
  
  <ul>
  <li>fastcgi_read_timeout (the above thread says this fixed the issue for
  that user) </li>
  <li>client_header_timeout </li>
  <li>client_body_timeout </li>
  <li>send_timeout</li>
  </ul>