▱HAMILTON TECH LAB
← Web Hosting Lab
WEB HOSTING LAB · LESSON 2 OF 3

Nginx and static files

Read the explanation, try the exercise, then answer the quiz.

Understand the concept

Nginx is serving this website from a mounted directory. The root index.html file provides the homepage; other HTML files create separate clickable pages. CSS controls styling and JavaScript adds interactions.

Because the directory is mounted into the Nginx container read-only, editing a local file updates the served page without rebuilding the image.

TRY IT YOURSELF

Practice task

Locate index.html, assets/style.css and learn/index.html in the deployed folder.

CHECK YOUR UNDERSTANDING

Quick quiz

Which file usually defines the homepage of a static site?