VPS侦探论坛

标题: auto_prepend_file 多个站点就出问题了 [打印本页]

作者: wyqjx    时间: 2015-3-18 10:03
标题: auto_prepend_file 多个站点就出问题了
php.ini 这样设置
  1. auto_prepend_file="/mnt/wwwroot/a.com/safe.php"
  2. [HOST=a.com]
  3. open_basedir=/mnt/wwwroot/a.com/:/tmp/
  4. [PATH=/mnt/wwwroot/a.com]
  5. open_basedir=/mnt/wwwroot/a.com/:/tmp/
  6. [HOST=b.com]
  7. open_basedir=/mnt/wwwroot/b.com/:/tmp/
  8. [PATH=/mnt/wwwroot/b.com]
  9. 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
openbasedir会限制跨目录




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4