[proxy_fcgi:error] The timeout specified has expired – Apache 2.4

Spent two hours trying to troubleshoot this.

[proxy_fcgi:error] The timeout specified has expired

The fix turns out to be pretty simple, add the following variables to /etc/httpd/conf/httpd.conf and tune them according to your requirement

Timeout 600
ProxyTimeout 600