From the course: NGINX for Beginners

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

HTTPS demo

HTTPS demo

So now that we know how HTTPS works, it's really important that we configure our NGINX web server to forward any HTTP traffic to HTTPS. Now, what we're going to be doing is configuring our NGINX server with the SSL search that we're going to generate here. And basically what's going to happen is Any requests that come in through HTTP are going to be returned through HTTPS. Now, we use the return directive in module three, but we didn't really go through generating the certs. So that's what we're going to be doing in this first example. And then the second example we're going to be doing is using a reverse proxy the same way that we did before in the last module. But instead of sending traffic via port 80 to some port 5000 or whatever, we're going to make sure that NGINX listens on 443 and it sends encrypted traffic over to the Apache web servers. Now, let me show you my terminal here and I'll show you the first thing we're going to do. Now, here I have NGINX, I'm going to just run my…

Contents