最近翻php手册发现的
在php.ini里面
为每个虚拟主机添加一段如下代码,重启php-fpm即可
只对php-5.3+有效

open_basedir = "/web/vhosts/server/xxx.com/"