标签:http.conf virtual 4.6 com doc als host for 进入
进入到Apache的配置文件:cd /etc/httpd/conf/http.conf
在后面添加:
<VirtualHost *:80> # This first-listed virtual host is also the default for *:80 ServerName www.example.com ServerAlias example.com DocumentRoot "/var/www/html/" </VirtualHost>
详细参考官网:http://httpd.apache.org/docs/2.4/vhosts/name-based.html
标签:http.conf virtual 4.6 com doc als host for 进入
原文地址:https://www.cnblogs.com/wanyong-wy/p/9257787.html