Mission 61

Nano nginx comment

Open a copied nginx config and validate the training server config.

Nano and editing
9 minutes Admin Lesson 61 of 360
cpnanonginx
Lesson 61 of 360 0/360 lessons 0/17 missions Nano and editing · 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 nginx config

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

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

Run nano lab/learn-comment.conf.

nano lab/learn-comment.conf
Test nginx

Run nginx -t.

nginx -t
Lesson support

What to notice while you play.

Objective

Practice edit-then-test workflow.

Hint

Copy the config to lab before opening nano.

Why it matters

Validation catches syntax mistakes before reloads.

Common mistakes
  • Restarting before testing.
  • Testing a different file than the one you edited.
Reference

Commands in this lesson.

nano <file>

Open a simulated nano editor.

cp <src> <dst>

Copy a file.

nginx -t

Validate training nginx configuration.