- 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:
And also added, still in the "Additional directives for Nginx":
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.
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
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.