日期:2014-05-16 浏览次数:21045 次
<VirtualHost *:80> ServerAdmin jbxue.com DocumentRoot "/var/www" DirectoryIndex index.html index.htm index.php ServerName www.jbxue.com ErrorLog "logs/aaa-error_log" CustomLog "logs/aaa-access_log" common <Directory "/var/www"> Options -Indexes +FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>配置好以后,创建一个测试用的php文件:index.php。
Include conf/extra/httpd-vhosts.conf #去掉前边的“#”注释。
#service httpd start