NGINXCaddy Intermediate Free course, 2 parts
Web servers and proxies
Serve sites and proxy apps with nginx and Caddy, add HTTPS, caching and load balancing.
For developers running more than one app on a server.
- 8 lessons
- 3h 4m total time
- 1 hands-on lab
- 2 diagrams
- 8 quizzes
Course complete
You finished Web servers and proxies
All 8 lessons done on . Share it, print the certificate, or start the next course below.
Levelrail Learn Certificate of completion Completed Web servers and proxies on Levelrail Learn 8 lessons, 3h 4m of guided practice levelrail.com/learn/courses/web-servers-and-proxies/
What you will be able to do
- Configure nginx and Caddy
- Proxy Node and other apps
- Cache, rate limit and harden
- Balance load across backends
Syllabus
8 lessons in 2 parts, 3h 4m in total
Part 1
Lessons 1 to 4
4 lessons, 1h 30m 0/4- Nginx from scratch on Ubuntu: install, server blocks, reload Up next Done Nginx is a web server that reads its rules from config files, so you install it, describe a site in a server block, test the syntax and reload it. 20 min Beginner Lab Quiz
- Nginx reverse proxy for a Node app: headers, paths, timeouts Up next Done An nginx reverse proxy for a Node app forwards requests to a local port with proxy_pass and passes headers so the app still knows the real host, client IP and scheme. 25 min Intermediate Diagram Quiz
- Caddy from scratch: Caddyfile, file_server and reverse_proxy Up next Done Caddy is a web server configured by a short Caddyfile, where a site address plus file_server or reverse_proxy is enough to serve a site with automatic HTTPS. 20 min Beginner Quiz
- Nginx HTTPS with certbot: what it edits and how to harden it Up next Done Certbot with the nginx plugin proves you own a domain, saves a Let's Encrypt certificate under /etc/letsencrypt/live and edits your server block to serve HTTPS. 25 min Intermediate Quiz
Part 2
Lessons 5 to 8
4 lessons, 1h 34m 0/4- Gzip and caching headers in nginx: Cache-Control, ETag, expires Up next Done Gzip shrinks text responses on the wire, and Cache-Control tells browsers how long to reuse a file, so long caching goes on hashed assets and never on index.html. 22 min Intermediate Quiz
- Nginx rate limiting and security headers: limit_req and HSTS Up next Done Nginx rate limiting caps how fast one client can send requests with limit_req, and security headers such as HSTS and X-Content-Type-Options tell browsers to apply safer behavior. 25 min Intermediate Quiz
- Websockets through a proxy: nginx Upgrade headers and SSE Up next Done A websocket starts as an HTTP request with an Upgrade header, so a proxy must pass that header, use HTTP 1.1 to the app and keep idle connections open long enough. 22 min Intermediate Quiz
- Load balancing across two backends with nginx upstream Up next Done Load balancing in nginx means listing several servers in an upstream block and pointing proxy_pass at it, so requests are shared and a failed server is skipped. 25 min Intermediate Diagram Quiz