Hands-on task
This task is step 10 of the course “nginx basics”
Lock down /admin with basic auth
The admin panel at http://localhost/admin/ is open to the whole world. Lock it down with HTTP basic auth: user admin, password izzylab. The rest of the site must stay public.
What you'll practise:
- nginx
- http basic auth
- htpasswd
- location
- 401