Gateway Timeout

pejmanhkh

New member
Joined
May 9, 2020
Messages
4
Hi,
I did everythings in this link : https://help.directadmin.com/item.php?id=548
But yet i get gateway timeout
Timeout is not from php because i tested it by this code
Code:
<?php
ob_start();

ini_set('display_errors', 1);
set_time_limit(0);

//phpinfo();

$time = time();

while( 1 ) {
  
    file_put_contents('text.txt', "t\n", 11);

    //flush();
    //ob_flush();

    sleep(1);
    //flush();
    //ob_flush();
    if( time() - $time > 60 ) {
        break;
    }
}

file_put_contents('text.txt', "end", 11 );

Also nginx proxy config seted in /etc/nginx/nginx-proxy.conf

Code:
proxy_connect_timeout 150s;
proxy_send_timeout    150s;
proxy_read_timeout    1800s;
proxy_buffer_size     128k;
proxy_buffers       4 256k;
proxy_busy_buffers_size 256k;

Nginx after 30 seconds time outed, but php works on 60 seconds ...

Does any on know problem ?
 
Last edited:
serbvices restarted after config modifications? what you see in logs?
 
Yes, I restart after change. with vpn i have not this problem. but without vpn gateway timeouted !!!!
 
Back
Top