一、作业要求
主站点 http://www.zz.com 192.168.145.100 站点主目录 /var/www/html
技术部站点 https://tec.zz.com 192.168.145.101 站点主目录 /var/www/tec
市场部站点 https://mkt.zz.com 192.168.145.102 站点主目录 /var/www/mkt
二、拓扑图
三、配置
站点配置 首先我们要确定已经搭建dns服务器,web服务器和CA.可以从上面几篇博文进行搭建和安全设置。
实现多个ip
[root@localhost ~]# ifconfig eth0:0 192.168.145.101
[root@localhost ~]# ifconfig eth0:1 192.168.145.102
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:1B:E2:73
inet addr:192.168.145.100 Bcast:192.168.145.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe1b:e273/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7181 errors:0 dropped:0 overruns:0 frame:0
TX packets:4888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:620809 (606.2 KiB) TX bytes:705252 (688.7 KiB)
Interrupt:67 Base address:0x2000
eth0:0 Link encap:Ethernet HWaddr 00:0C:29:1B:E2:73
inet addr:192.168.145.101 Bcast:192.168.145.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:67 Base address:0x2000
eth0:1 Link encap:Ethernet HWaddr 00:0C:29:1B:E2:73
inet addr:192.168.145.102 Bcast:192.168.145.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:67 Base address:0x2000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1803 errors:0 dropped:0 overruns:0 frame:0
TX packets:1803 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2949156 (2.8 MiB) TX bytes:2949156 (2.8 MiB)
[root@localhost named]# cd /var/named/chro