📜  504 网关超时 nginx 1.18.0 (ubuntu) - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:39.147000             🧑  作者: Mango

代码示例4
location ~ .php$ {
root /var/www/sites/nginxtips.com;
try_files $uri =404;
fastcgi_pass unix:/tmp/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300;
}