资源预览内容
第1页 / 共7页
第2页 / 共7页
第3页 / 共7页
第4页 / 共7页
第5页 / 共7页
第6页 / 共7页
第7页 / 共7页
亲,该文档总共7页全部预览完了,如果喜欢就下载吧!
资源描述
一个IP、一个域名、两个别名192.168.1.1 www.sub.ycit.com 别名 ooo.sub.ycit.com、ddd.sub.ycit.com1 vi /etc/named.confZone”sub.ycit.com” IN Type master; File”newname1.db”2 cd /var/named cp named.local newname1.db3 vi newname1.db$ TTL 86400 IN SOA www.sub.ycit.com. lz-lz333.tom.com 2005101000 Serial IN ns www.sub.ycit.com.www IN A 192.168.1.1ooo IN CNAME www5 mkdir /www/html1mkdir /www/htm1vi /www/html1/index.html 111111111111111111111111vi /www/htm1/index.html 22222222222222226 service named restart7 host www.sub.ycit.comhost ooo.sub.ycit.comhost ddd.sub.ycit.com8 vi etc/httpd/conf/httpd.conf #注:htpd.conf要备份一份 通过“/字符串”查找 Listen 80 ServerName ooo.sub.ycit.com NameVirtualHost 192.168.1.1 DocumentRoot “/www/html1” ServerName ooo.sub.ycit.com DocumentRoot “/www/htm1” ServerName ddd.sub.ycit.com 9 httpd -t10 service httpd restart11 lynx www.sub.ycit.comlynx ooo.sub.ycit.comlynx 192.168.1.1lynx 192.168.1.2 两个都是辅服务器第8步开始8 vi etc/httpd/conf/httpd.conf #注:htpd.conf要备份一份 通过“/字符串”查找 Listen 80 ServerName www.sub.ycit.com DocumentRoot “/www/html1” ServerName ooo.sub.ycit.com DocumentRoot “/www/htm1” ServerName www.dog.ycit.com 9 httpd -t10 service httpd restart11 lynx www.sub.ycit.comlynx ooo.sub.ycit.comlynx www.dog .ycit.comlynx 192.168.1.1lynx 192.168.1.2一个IP、多个域名 192.168.1.1 www.sub.ycit.com 别名 ooo.sub.ycit.com 另一域名 www.dog.ycit.com1 vi /etc/named.confZone”sub.ycit.com” IN Type master; File”newname1.db”Zone”dog.ycit.com” IN Type master; File”newname2.db”2 cd /var/named cp named.local newname1.db cp named.local newname2.db3 vi newname1.db$ TTL 86400 IN SOA www.sub.ycit.com. lz-lz333.tom.com 2005101000 Serial IN ns www.sub.ycit.com.www IN A 192.168.1.1ooo IN CNAME www4 vi newname2.db$ TTL 86400 IN SOA www.dog.ycit.com. lz-lz333.tom.com 2005101000 Serial IN ns www.dog.ycit.com.www IN A 192.168.1.26 mkdir /www/html1mkdir /www/htm1vi /www/html1/index.html 111111111111111111111111vi /www/htm1/index.html 22222222222222226 service named restart7 host www.sub.ycit.comhost ooo.sub.ycit.comhost www.dog.ycit.com8 vi etc/httpd/conf/httpd.conf #注:htpd.conf要备份一份 通过“/字符串”查找 Listen 80 DocumentRoot “/www/html1” ServerName www.sub.ycit.com DocumentRoot “/www/html1” ServerName ooo.sub.ycit.com DocumentRoot “/www/htm1” ServerName www.dog.ycit.com 12 httpd -t13 service httpd restart14 lynx www.sub.ycit.comlynx ooo.sub.ycit.comlynx www.dog .ycit.comlynx 192.168.1.1
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号