%20.png)
Ubuntu 16.04에 Nginx와 php7.1-fpm을 설치했습니다. 완벽하게 잘 작동하고 있었어요. 오류가 발생하기 시작했습니다 504 Gateway Time-out
.
Nginx 로그를 확인했을 때 다음 오류가 발생했습니다.
*1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: server.name,, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock", host: "example.com", referrer: "http://example.com/"
여기 내 가상 호스트 파일이 있습니다
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name example.com;
root /var/www/example/public;
index index.html index.htm index.nginx-debian.html index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
이 오류가 발생하는 이유를 안내해 주세요. 어떻게 해결할 수 있나요?