Hello,
I'm trying to display images on a subdomain, which are stored in the main domain's directory. This is not working as there's a restriction in the php.ini. I'm trying though to bypass this restriction by using a vhost.conf file, but still no luck. The vhost.conf contains:
<Directory /srv/www/vhosts/domain.com/subdomains/sub/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/srv/www/vhosts/domain.com/httpdocs:/srv/www/vhosts/domain.com/subdomains/sub/httpdocs:/tmp:/srv/www/vhosts/domain.com/httpdocs/files"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/srv/www/vhosts/domain.com/httpdocs:/srv/www/vhosts/domain.com/subdomains/sub/httpdocs:/tmp:/srv/www/vhosts/domain.com/httpdocs/files"
</IfModule>
</Directory>
I don't really understand how this works, but as i saw on some websites it should be working...