Mission 88

Config test loop

Copy, open, and test nginx configuration safely.

Server operations
9 minutes Admin Lesson 88 of 360
cpnanonginx
Lesson 88 of 360 0/360 lessons 0/17 missions Server operations · 9 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 9 minutes

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

Copy config

Run cp /etc/nginx/sites-available/learn.conf lab/learn-loop.conf.

cp /etc/nginx/sites-available/learn.conf lab/learn-loop.conf
Open config

Run nano lab/learn-loop.conf.

nano lab/learn-loop.conf
Test config

Run nginx -t.

nginx -t
Lesson support

What to notice while you play.

Objective

Practice the config validation loop.

Hint

Copy learn.conf to lab, open it, then run nginx -t.

Why it matters

Testing before reloads prevents avoidable outages.

Common mistakes
  • Skipping the test command.
  • Editing the production path while learning.
Reference

Commands in this lesson.

nano <file>

Open a simulated nano editor.

cp <src> <dst>

Copy a file.

nginx -t

Validate training nginx configuration.