只需要更改子域名下的配置文件 vhosts.conf 文件,设置 php 读取超时时间即可
fastcgi_read_timeout 300;
location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9002; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; # 设置 PHP 读取超时时间 fastcgi_read_timeout 300; }
配置完之后,重启NGINX 服务即可
标签:info,超时,param,nginx,404,path,php,fastcgi From: https://www.cnblogs.com/blts/p/18500018