Directory structure for a simple Apache web site

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, 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.

image with no caption

Get Head First Servlets and JSP, 2nd 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.