在学习Linux的WebServer的过程中,尝试使用虚拟主机服务,在/data/www目录下创建了一个html文件,配置完/etc/httpd/conf/httpd.conf
之后,也就是这样:
<VirtualHost *:80>
ServerName www.test.com
DocumentRoot /data/www
<Directory "/data/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
发现用浏览器打开的还是centos的默认界面。