搭建两个web网站,
1、该网站ip地址主机位为11,设置documentroot为/www/你的名字拼音的缩写,网页内容为:my name is… 2、在rhel8的系统上搭建网站:该网站ip地址主机位为1
2,设置documentroot为/www/12,网页内容为:wo shi 你的姓名的拼音。
1.关掉防火墙,开启httpd,linux7开启或重启失败时输入第二个查看命令,第一个无法查看
2.配置IP:主机位为11和主机位为12
例如我的网络位为192.168.89.0/24,配置结束后需要连接网卡(nmcli connection up ens*)
3.配置 haha11.conf 和haha12.conf
配置内容要包括
documentroot
servername
以及
allowoverride none
require all granted
4.重启httpd,curl两个IP