请问nginx与php-fpm之间如何传递环境变量?
网友回复
两种方式
1、通过nginx的fastcgi_param来设置 在nginx配置文件中,可以在nginx总体的配置文件nginx.conf中,也可以在单独的网站配置环境中进行设置,如:www.test.com.conf 在配置环境段location中添加相应的配置信息:
location ~ .*\.(php|php5)?$ { try_files $uri =404...
点击查看剩余70%
请问nginx与php-fpm之间如何传递环境变量?
网友回复
两种方式
1、通过nginx的fastcgi_param来设置 在nginx配置文件中,可以在nginx总体的配置文件nginx.conf中,也可以在单独的网站配置环境中进行设置,如:www.test.com.conf 在配置环境段location中添加相应的配置信息:
location ~ .*\.(php|php5)?$ { try_files $uri =404...
点击查看剩余70%