群晖nginx超时 504 Gateway Time-out
群晖6用webstation搭建php站点,nginx 超时解决 nginx 504 Gateway Time-out
群晖自带的nginx不让修改配置,但是可以修改这个
切换root
sudo su -
修改nginx配置文件
vim /usr/syno/share/nginx/nginx.mustache
添加下面几行,可以搜文件中的send_timeout 处添加
send_timeout 600s;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
重启nginx
synoservice --restart nginx
如果webstation后台用的apache,同时也要配置appache
cd /usr/local/etc/apache24/conf
vi httpd24.conf
在最后一行加入
Timeout 600
重启
synoservice --restart pkgctl-Apache2.4