更新时间:2023-02-16 22:42:00
我使用此文档页面来获取Nginx的正确基本配置,因为此特定项目使用Symfony:
I used this documentation page to get the correct base configuration for Nginx, as this particular project uses Symfony:
https://symfony.com/doc/current/setup/web_server_configuration.html#nginx
如此处所述,我需要将fastcgi_pass设置为127.0.0.1:9000以匹配我的PHP-FPM配置.
As noted there, I needed to set fastcgi_pass to 127.0.0.1:9000 to match my PHP-FPM config.