apache + proxy reverso para outro apache, 504 Gateway Time-out após 30 segundos

apache + proxy reverso para outro apache, 504 Gateway Time-out após 30 segundos

Eu tenho um script php fácil parecido com este:

sleep(35);
echo 'ok';

Quando tento acessar esta URL no servidor A, tudo está funcionando bem, não consigo nenhum tempo limite (vejo 'ok')

Então eu tenho um servidor B onde configuro um proxy reverso como este

ProxyRequests     Off
ProxyPreserveHost On
ProxyTimeout 300
ProxyPass /old-domain/ https://exemple.com/gestion/ timeout=1200     KeepAlive=On disablereuse=On
ProxyPassReverse /old-domain/ https://exemple.com/gestion/ timeout=1200

Quando acesso a URL no servidor B após 30 segundos aparece este erro: 504 Gateway Time-out

informação relacionada