Testing with the command line

This time, we are going to test it using the command-line tool, curl. As you can see from my office IP, no issues arose when trying to reach both the root directory and the sub-URL: 

giuseppe@Giuseppes-MacBook-Air ~> curl http://playground-1940933132.us-east-1.elb.amazonaws.com/subdir/ This is a sub directorygiuseppe@Giuseppes-MacBook-Air ~> curl http://playground-1940933132.us-east-1.elb.amazonaws.com/ This is a playground main directorygiuseppe@Giuseppes-MacBook-Air ~>

Instead, when I used a virtual machine with another public IP, I got back the following result: 

[ec2-user@ip-172-31-6-204 ~]$ curl http://playground-1940933132.us-east-1.elb.amazonaws.com/ This is a playground main directory [ec2-user@ip-172-31-6-204 ...

Get Effective DevOps with AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.