V
V
Vit2014-12-21 14:14:30
Nginx
Vit, 2014-12-21 14:14:30

How to setup nginx + apache for parsing script?

Good afternoon. I set up apache and nginx to execute a php parsing script, but nginx 502 error crashes after a minute of execution.
In nginx logs:

2014/12/21 13:24:22 [error] 18168#0: *198 upstream prematurely closed connection while reading response header from upstream

What exactly did you set up.
In php.ini
max_execution_time = 8640000
max_input_time = 8640000

In nginx.conf
proxy_connect_timeout 60m;
proxy_send_timeout 60m;
proxy_read_timeout 60m;

These settings didn't help.
Tried to disable nginx and only work with apache, the script works fine. Apparently the problem is in the nginx settings.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2014-12-21
@TaHKucT

What's in the nginx error.log? Show the whole piece of the nginx config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question