Usernames and passwords are an important part of limiting access and keeping things secure online. In this video, learn how to use NGINX’s HTTP Auth Basic module to set up a simple username and password prompt on your website.
- [Instructor] Usernames and passwords…are an important part of limiting access…and keeping things secure online.…Let's use NGINX's http auth basic module…to configure a simple username and password prompt…to protect parts of our website.…We've already configured our NGINX server to only allow…access to the appointments page from our network.…But even if the page is being accessed…from someone on our network, we still might want to limit…who can see this information.…This is a good case for using basic authentication,…which will require anyone who accesses the page…to enter a username and password.…
Let's go back to the terminal and connect…to our development environment.…Our server is already up, so I'm going to connect…to it with Vagrant SSH.…And then I'll elevate this session to use the root user.…Now we can install htpasswd, a utility that lets us…easily create a password file.…Oddly enough, NGINX doesn't ship with the utility…to create password files, so we need to use the one…that comes with Apache.…
We can get it without having to completely install Apache,…
- Installing NGINX on Linux
- Configuring a virtual host
- Installing PHP and MariaDB for the LEMP stack
- Securing sites with NGINX
- Creating SSL certificates
- Reverse proxies
- Load balancing
Skill Level Beginner
DevOps Foundations: Infrastructure as Codewith Ernest Mueller2h 6m Intermediate
1. Install and Configure NGINX
2. The Linux, NGINX, MySQL, and PHP Stack
3. NGINX Security
4. Reverse Proxies and Load Balancers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.