'Response time exceeded

I have a problem with a django application. When making a request to an RFC, the response from SAP takes 3 minutes. Time in which the connection from the apache server is cut and it does not allow displaying the data on my website.

Timeout 600
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 600

<VirtualHost *:80>
    Timeout 600
    ProxyTimeout 600
    
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
    Timeout 600
    ProxyTimeout 600  
    ProxyPreserveHost On

    SSLProxyEngine on
    # The order is important here
    ProxyPass /static !
</VirtualHost>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source