Mission 82

Nginx site map

Inspect training nginx site layout and run a config test.

Server operations
8 minutes Admin Lesson 82 of 360
lscatnginx
Lesson 82 of 360 0/360 lessons 0/17 missions Server operations · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

List available sites

Run ls /etc/nginx/sites-available.

ls /etc/nginx/sites-available
Read site config

Run cat /etc/nginx/sites-available/learn.conf.

cat /etc/nginx/sites-available/learn.conf
Test nginx

Run nginx -t.

nginx -t
Lesson support

What to notice while you play.

Objective

Map available and enabled nginx configs.

Hint

List sites-available, then read learn.conf.

Why it matters

Nginx routing bugs often come from the wrong file being enabled.

Common mistakes
  • Editing a disabled file.
  • Skipping nginx -t.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

cat <file>

Print text file contents.

lsof

Show simulated files and sockets opened by services.

nginx -t

Validate training nginx configuration.