Increasing Apache Proxy Timeout
With use cases that cause mongrels to execute longer queries, users may experience proxy errors because Apache is not receiving a response from the mongrels. The following configuration increases the possible timeout values.
# tell Apache where to find static files /aspera/orchestrator
Alias /aspera/orchestrator/images "/opt/aspera/orchestrator/public/images"
Alias /aspera/orchestrator/stylesheets "/opt/aspera/orchestrator/public/stylesheets"
Alias /aspera/orchestrator/javascripts "/opt/aspera/orchestrator/public/javascripts"
Alias /aspera/orchestrator/my/images "/opt/aspera/var/config/orchestrator/web/images"
Alias /aspera/orchestrator/my/stylesheets "/opt/aspera/var/config/orchestrator/web/stylesheets"
Alias /aspera/orchestrator/my/javascripts "/opt/aspera/var/config/orchestrator/web/javascripts"
<Directory "/opt/aspera/orchestrator/public">
Options -Indexes +FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/aspera/var/config/orchestrator/web">
Options -Indexes -FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
ProxyTimeout 1200
<Proxy balancer://orchestrator_cluster>
BalancerMember http://127.0.0.1:3000
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
BalancerMember http://127.0.0.1:3003
BalancerMember http://127.0.0.1:3004
</Proxy>
# don't proxy static files, serve directoy
ProxyPass /aspera/orchestrator/images !
ProxyPass /aspera/orchestrator/stylesheets !
ProxyPass /aspera/orchestrator/javascripts !
ProxyPass /aspera/orchestrator/my/images !
ProxyPass /aspera/orchestrator/my/stylesheets !
ProxyPass /aspera/orchestrator/my/javascripts !
# send the proxy request
# @web_root starts with / if not nil
ProxyPass /aspera/orchestrator balancer://orchestrator_cluster/aspera/orchestrator timeout=1200