同台服务器,多站点上传目录问题

我们有一台服务器,服务器跑两个站点

A站点:PC        域名:pc.test.com

B站点: API接口 域名:api.test.com

图片目录设置在PC站站点,现在APP调用API图片上传接口,在图片上传接口:move_upload_file图片目标目录设定为A站点下,不过在API接口VirtualHost下,设定目录访问权限,不然会报如下错误:

open_basedir restriction in effect;file(。。)is not within the allowed path

在API接口虚拟主机配置文件下,VirtualHost命令下,指定目录访问权限

<VirtualHost *:88>
ServerName api.test.com
php_admin_value open_basedir /www/wwwroot/apitest.com/public:/tmp:/www/wwwroot/pctest.com
....
</VirtualHost>


你可能感兴趣的:(同台服务器,多站点上传目录问题)