We’ll talk more about Apache and Tomcat later, but for now let’s assume that our simple web site is using Apache (the extremely popular, open source web server you’re probably already using). What would the directory structure look like for a web site called www.wickedlysmart.com, hosting two applications, one giving skiing advice, and the other beer-related advice? Imagine that the Apache application is running on port 80.
The .html pages are each marked with a letter (A, B, C, D) for the exercise on the opposite page.
Sharpen your pencil
Mapping URLs to content
Look at the directory structure on the opposite page, then write in a URL that would get you to each of the four .html pages marked with the A, B, C, and D. We did the first one (A) for you, because that’s the kind of people we are. For the exercise, assume Apache is running on port 80. (The answers are at the bottom of the next page.) will cause the server to return to you the index.html page at location ?
will cause the server to return to you the index.html page at location
will cause the server to return to you the index.html page at location
will cause the server to return to you the index.html page at location
will cause the server to return to you the selectBeer.html page at location