[英]Create vhost conf
I want to configure a vhost for php so that my open base dir restriciton is overwritten but it does not use my vhost.conf. 我想为php配置一个vhost,以便我的open base dir限制被覆盖,但它不使用我的vhost.conf。
My php.ini
always shows open_basedir /var/www/vhosts/domain/httpdocs/:/tmp/ ||||
我的php.ini
总是显示open_basedir /var/www/vhosts/domain/httpdocs/:/tmp/ ||||
no value last value is global but local has a value. 没有值最后一个值是全局值,但local值是一个值。 I want to overwrite this with the following vhost.conf which is lying under /var/www/vhosts/domain/conf
我想用下面的/var/www/vhosts/domain/conf
下的vhost.conf覆盖它
<Directory /srv/www/vhosts/domain/httpdocs>
AllowOverride All
php_admin_value open_basedir none
</Directory>
Its not a subdomain. 它不是一个子域名。
ls -al
-rwxrwxrwx 1 root psaserv 295 2011-09-30 19:43 vhost.conf
Steps to reproduce: 重现步骤:
login as root
cd /var/www/vhosts/domain/conf
touch vhost.conf
added content
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain
/etc/init.d/apache2 restart
no change :( 没变 :(
I am using ubuntu with plesk. 我正在使用ubuntu和plesk。
Did you include your new conf file in httd.conf? 您是否在httd.conf中包含了新的conf文件?
Try adding this line to the end of httpd.conf: 尝试将此行添加到httpd.conf的末尾:
Include /var/www/vhosts/domain/conf/vhost.conf
and then restart apache 然后重启apache
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.