server 5 proxy timeout settings
I recently upgraded to Server 5.0.4 and then to 5.0.15. I host a number of websites and one of them uses an external server to obtain data and this can take a few minutes, depending on the search requested. This ran fine on previous versions of server but I was getting error 502 on Server 5.0.x due to the reverse proxy timing out before the external server had responded. On Server 5.0.4 I tried to avoid this by setting up a second Wi-Fi connector and setting Apache to listen for port 80 on the extra IP address and this worked. However as soon as I upgraded to 5.0.15, my settings were overwritten again and I was back to square one. It took me quite a long time to find a solution having tried adding ProxyTimeout statements in various places to no avail. Here's what finally worked for me.
In /library/server/Web/Config/proxy/apache_serviceproxy.conf I modified the generic ProxyPass statement right at the end of the VirtualHost *:80 section to add a timeout as follows:
ProxyPass / http://127.0.0.1:34580/ timeout=300
and this increased the default timeout to 5 minutes (300 seconds).
I hope this might help someone else with the same problem.
Mac mini, OS X El Capitan (10.11.1), Server 5.0.15