您的位置:首页 > 其它

第十周作业

2019-06-09 00:17 971 查看

1、 简述DNS服务,并搭建DNS服务器,实现主从,子域授权

答:在slave服务器上

#vim /etc/named.rfc1912
zone “killerblake.com” IN {
type slave;
file “slaves/killerblake.com.zone”;
masters { 192.168.1.88; };
};

重启即可
值得注意是iptables要关闭。

2、 简述HTTP服务,并实现基于用户的访问控制,虚拟主机,https

答:#vim /etc/httpd/conf.d/wl.conf
#<virtualhost 192.168.1.92>
servername www.wlwl.com
documentroot “/var/www”
<directory “/var/www”>
options none
allowoverride none
authtype basic
authname “请输入正常的用户名和密码”
authuserfile “/etc/httpd/conf.d/.userpasswd”
require user sa
</directory>
</virtualhost>
#ip addr add 192.168.1.92 dev ens33
#systemctl restart httpd.service
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: