Case A
1. Require the implementation of the host-based virtual host, IP are 192.168.1.25
2. The main site is www.abc.com, the main directory is/var/www/html, anyone can access;
3. Marketing site for mkt.abc.com, home directory for/VAR/WWW/MKT, set default home page for mkt.html
Authentication: User1,user2 can access mkt.abc.com via authentication,
Source control: Only 192.168.1.30 can access,
4. The Technical department site is tec.abc.com, the home directory is/var/www/tec, the default home page is set to tec.html and requires only access through HTTPS.
The case topology diagram is as follows:
Specific steps:
To access a Web server with a domain name, we first install the DNS service
[ROOT@DG server]# RPM-IVH bind-9.3.6-4.p1.el5.i386.rpm
More Wonderful content: http://www.bianceng.cn/Servers/web/
[ROOT@DG server]# RPM-IVH bind-chroot-9.3.6-4.p1.el5.i386.rpm
[ROOT@DG server]# RPM-IVH caching-nameserver-9.3.6-4.p1.el5.i386.rpm
2. Switch to/VAR/NAMED/CHROOT/ETC
3. Copy the main configuration file and modify the following
[ROOT@DG etc]# cp-p named.caching-nameserver.conf named.conf
[Root@dg etc]# Vim named.conf