wyqjx 发表于 2015-3-18 10:03:23

auto_prepend_file 多个站点就出问题了

php.ini 这样设置
auto_prepend_file="/mnt/wwwroot/a.com/safe.php"

open_basedir=/mnt/wwwroot/a.com/:/tmp/

open_basedir=/mnt/wwwroot/a.com/:/tmp/

open_basedir=/mnt/wwwroot/b.com/:/tmp/

open_basedir=/mnt/wwwroot/b.com/:/tmp/


站点目录
a.com对应/mnt/wwwroot/a.com
b.com对应/mnt/wwwroot/b.com
然后在a.com 下面php都能正常访问
可是b.com 下面就的php 都不能访问,500错误,是不是 这样算跨站,就不能访问了



licess 发表于 2015-3-18 14:03:57

openbasedir会限制跨目录
页: [1]
查看完整版本: auto_prepend_file 多个站点就出问题了