VPS侦探论坛
标题:
auto_prepend_file 多个站点就出问题了
[打印本页]
作者:
wyqjx
时间:
2015-3-18 10:03
标题:
auto_prepend_file 多个站点就出问题了
php.ini 这样设置
auto_prepend_file="/mnt/wwwroot/a.com/safe.php"
[HOST=a.com]
open_basedir=/mnt/wwwroot/a.com/:/tmp/
[PATH=/mnt/wwwroot/a.com]
open_basedir=/mnt/wwwroot/a.com/:/tmp/
[HOST=b.com]
open_basedir=/mnt/wwwroot/b.com/:/tmp/
[PATH=/mnt/wwwroot/b.com]
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