1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab!!!
2.给该公司创建三个子界面分别显示学生信息,教学资料和缴费网站,基于www.openlab.com/student 网站访问学生信息,www.openlab.com/data网站访问教学资料 www.openlab.com/money网站访问缴费网站。
mkdir /www/money
mkdir -p /www/openlab/data
mkdir /www/openlab/student
echo "welcome to openlab!!!" > /www/openlab/index.html
echo "this is money" > /www/money/3.html
echo "this is student" > /www/openlab/student/student.html
echo "this is data" > /www/openlab/date/date.html
vim /etc/httpd/conf.d/vhosts.conf
3.要求 :
(1)学生信息网站只有song和tian两人可以访问,其他用户不能访问。
htpasswd -c /etc/httpd/denglu/mymima song
htpasswd /etc/httpd/denglu/mymima tian
(2)访问缴费网站实现数据加密基于https访问。