Once you have an SSL certificate and key, your server needs to be configured to use them. In this video, learn how to configure NGINX to use an SSL certificate and redirect insecure HTTP requests to use the more secure HTTPS.
- [Narrator] Now that we have our certificate…and key, we need to configure NGINX to use them.…Let's edit the site configuration file.…The first thing we'll need to do…is force all traffic to be served using https.…We'll do this by creating a new…default server that listens on port 80.…We don't need a root location for the server…because what we'll do instead is redirect…all traffic to https with a return directive.…
So if any requests come to port 80…they'll get a 301 code which will permanently…redirect the browser to a different address.…So I'll also need to provide the address…and for that we'll use https and the variables…that hold the server address and the request uri.…This will effectively redirect…any traffic that hits the site…from port 80 to port 443 which is the port…that https traffic is served over.…
Now we need to update our old server block…to listen on port 443.…We also need to add the SSL directive…to tell NGINX to encrypt the traffic served on this port.…Just because we configure NGINX to listen on…
- 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 Intermediate
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.