CentOS 7----Apache基于域名的虚拟主机配置

配置/etc/hosts文件,192.168.1.209 对应的域名以下:html 192.168.1.209 www.name1.comide 编辑每一个域名的配置文件: <VirtualHost 192.168.1.209:80> ServerName www.name1.com DocumentRoot /var/www/html <Dir
相关文章
相关标签/搜索