Linux Labs

Web stack / Stage 5 of 9

HTTPS in nginx: chain and redirect

Not running Starting usually ~20 s
Leave the lesson

Step 5 of 7 · on a machine · 4 min

HTTPS for docs

The second site, docs.lab.test, is open over HTTP only so far. The certificate docs.crt and the key docs.key from Lab Issuing CA are already in /etc/nginx/tls. Turn on HTTPS yourself.

Exercise · do it

Turn on HTTPS for docs

Turn on HTTPS on 443 for docs.lab.test with the full chain (docs.crt, docs.key and lab-issuing-ca.crt are in /etc/nginx/tls), and send HTTP requests to HTTPS with the same path. The site's configuration is /etc/nginx/sites-available/docs.

Sign in and start The machine is available after signing in

Goals · 0 of 2

  • Open docs.lab.test over HTTPS not done yet
  • Send HTTP to HTTPS with the same path not done yet

Step goals

0 of 2
  • Open docs.lab.test over HTTPS — not done yet
  • Send HTTP to HTTPS with the same path — not done yet
Ubuntu 24.04

Step goals

0 of 2
  • Open docs.lab.test over HTTPS — not done yet
  • Send HTTP to HTTPS with the same path — not done yet
Loading…