web:/index.html에서는 “webserver1”이, web2:/index.html에서는 “webserver2”가 보이도록 한다.

3.34.255.200

3.35.27.15
[ec2-user@ip-10-10-1-84 ~]$ sudo yum -y install httpd
[ec2-user@ip-10-10-1-84 ~]$ sudo systemctl restart httpd
[ec2-user@ip-10-10-1-84 ~]$ sudo systemctl enable httpd
[ec2-user@ip-10-10-1-84 ~]$ sudo vi /var/www/html/index.html
webserver
[ec2-user@ip-10-10-1-84 ~]$ curl localhost
[ec2-user@ip-10-10-1-84 ~]$ curl localhost
webserver
[ec2-user@ip-10-10-11-162 ~]$ sudo yum -y install httpd
[ec2-user@ip-10-10-11-162 ~]$ sudo systemctl restart httpd
[ec2-user@ip-10-10-11-162 ~]$ sudo systemctl enable httpd
[ec2-user@ip-10-10-11-162 ~]$ sudo vi /var/www/html/index.html
webserver2
[ec2-user@ip-10-10-11-162 ~]$ curl localhost
[ec2-user@ip-10-10-11-162 ~]$ curl localhost
webserver2