Nginx config file for reverse proxy and setting up SSL certificate

April 2nd, 2017 . 2 minutes read
Blog featured image

How to reverse proxy and setup SSL certificate using Nginx config file:

Nginx is one of best application server available for hosting application on Ubuntu server. In this article, I will guide to setup reverse proxy and SSL certificate using Nginx config file.

We are running our application on port 8000 on the local server. It is not publicly exposed. We will be exposing this publicly on SSL port.

Let me explain main parts of this config file in parts.
If any request that comes to non SSL port redirect to secure SSL port.

Apply SSL certificate :

Setup reverse proxy:

Let me know if you have questions. Thank you.

Share this post with friends if you find this helpful.

Author: morwal89