Я использую apache для проекта django. Мне нужно загрузить в приложение очень большой файл. Но я получаю ошибку тайм-аута шлюза 504.
Я использую Centos7, httpd2.4, mos_wsgi, python3.48
#myapp.conf
Alias /static /opt/grameenphone-torque/static
<Directory /opt/grameenphone-torque/static>
Require all granted
</Directory>
<Directory /opt/grameenphone-torque/xcg_is>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess xcg_is python-path=/opt/grameenphone-torque:/opt/grameenphone-torque/env/lib/python3.4/site-packages request-timeout=6000 connect-timeout=6000 queue-timeout=6000
WSGIProcessGroup xcg_is
WSGIScriptAlias / /opt/grameenphone-torque/xcg_is/wsgi.py
Просто добавьте необходимый TimeOut в раздел VirtualHost. https://httpd.apache.org/docs/2.4/en/mod/core.html#timeout. Подобно:
<VirtualHost *:443>
AllowEncodedSlashes On
....
TimeOut 600
....
Причина по умолчанию - ровно 60 секунд