Set Up Reverse Proxy Server Now that your application is running, and listening on a private IP address, you need to set up a way for your users to access it. We will set up an Nginx web server as a reverse proxy for this purpose. This tutorial will set up an Nginx server from scratch. If you already have an Nginx server setup, you can just copy the location block into the server block of your choice (make sure the location does not conflict with any of your web server's existing content). On the web server, let's update the apt-get package lists with this command: sudo apt-get update Then install Nginx using apt-get: sudo apt-get install nginx Now open the default server block configuration file for editing: sudo vi /etc/nginx/sites-available/default Delete everything in the file and insert the following configuration. Be sure to substitute your own domain name for the server_name directive (or IP address if you don't have a domain set up), and t...
Comentarios
Publicar un comentario