标签:服务器 value name dir doc 配置 style bsp root
[root@localhost ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/data/www"
ServerName www.test.com
ErrorLog "logs/test.com_error_log"
CustomLog "logs/test.com_access_log" combined
php_admin_value open_basedir "/data/www/:/tmp/" # 只能访问网站根目录和临时目录,服务器上的其他目录不能访问
</VirtualHost>
[root@localhost ~]# /usr/local/apache2/bin/apachectl -t
[root@localhost ~]# /usr/local/apache2/bin/apachectl graceful
标签:服务器 value name dir doc 配置 style bsp root
原文地址:http://www.cnblogs.com/pzk7788/p/7040986.html