• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue Increase Nginx timeout

Patashoow

Basic Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.72
Hello,

I'm desperately trying to increase Nginx timeout through Plesk interface under Domains → Apache & nginx Settings → Additional nginx directives but I still have an error in the logs saying "upstream timed out (110: Connection timed out) while reading response header from upstream".

I'm actually using Nginx as a proxy alongside Apache and running PHP via FPM behind Apache.

I have a PHP script that can run for a long time due to external calls and parsing so I set the PHP timeout to be of 300s. I did the same for Apache in "Additional directives" using the following:
Apache config:
ProxyTimeout 300
Timeout 300
And also added, still in the "Additional directives for Nginx":
NGINX:
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
send_timeout 300s;

Both PHP and Apache don't seem to complain but Nginx is somehow cutting the request.
What am I missing here? Do the Nginx directives interfere with Plesk's default block?

In fact I don't want to set it for all the requests but only for a specific URL. For now, I'm just trying to make it run.

Thank you in advance for any help or advice.
 
Try adding the following to additional NGINX directive:

NGINX:
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;

You can also try increasing it even more and see what happens.
 
Back
Top