include snippets/fastcgi-php.conf;
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/var/run/php/php8.0-fpm-kosmodrom.sock;
# # With php-cgi (or other tcp sockets):
fastcgi_pass 127.0.0.1:9003;
}
и для site2
include snippets/fastcgi-php.conf;
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/var/run/php/php8.0-fpm-kosmodrom.sock;
# # With php-cgi (or other tcp sockets):
fastcgi_pass 127.0.0.1:9004;
}
но отдают оба 502-ю ошибку. кула копать?
в логе nginx только
[error] 3210#3210: *5 connect() failed (111: Connection refused) while connecting to upstream, client: *.*.*.*, server: ***.com.ua, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9004", host: "***.com.ua"
У тебя php-fpm запущен?
https://paste.laravel.io/f090d5ec-29fb-4f97-8cc6-0164c36aab90
Обсуждают сегодня