Module 66: Web Server Configuration

Lesson 1 of 5 · 15–25 minutes

What Nginx does

🏠The everyday picture

A large hotel's front desk: it greets every guest, hands out brochures itself, sends guests to the right department, keeps out people who shouldn't be there, and handles crowds smoothly, so the departments behind can focus on their work.

📘What it really is

sudo apt install nginx
systemctl status nginx
curl -I http://localhost

🖱️Try it

Install Nginx in your lab and open its welcome page (curl http://localhost, or the lab's address in your browser). Look at /etc/nginx/sites-available/default. Run sudo nginx -t.

✅Quick check

Name three jobs Nginx does in front of an app.

Show the answer

Any three: serving static files, reverse proxying to the app, HTTPS, hosting several sites, compression, limits, security headers.

What should you run before reloading Nginx after a change?

Show the answer

sudo nginx -t to test the configuration.

← BackModule 66
ProLearners Assist