How to Use Nginx as a Reverse Proxy to Serve SiteView-Web

This article is for a Linux system!

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP), and a reverse proxy, load balancer for HTTP, TCP, and UDP servers.

In this article, we will use Nginx to interface between a web user and SiteView-Web web server.

If you have not installed Nginx, you can use the following command to install it to your system:

sudo apt update
sudo apt install nginx
  1. Edit Nginx default file:
    Enter the following command to open the editor for the default nginx file:

    sudo nano /etc/nginx/sites-available/default

    Replace the contents with the following script, or if you already have Nginx server running, you can add this script to allow port 80 point to SiteView-Web running on port 5000:

    server {
     listen 80 default_server; 
     listen [::]:80 default_server; 
     location / {
     proxy_pass http://localhost:5000/; 
     proxy_http_version 1.1; 
     proxy_set_header Upgrade $http_upgrade; 
     proxy_set_header Connection $http_connection;
     proxy_cache_bypass $http_upgrade;


  2. Press Ctrl + X and hit ‘Y’ to save the file and exit from the editor.
  3. Launch Nginx Server: Run the following command:
    sudo nginx -s reload
    sudo service nginx restart
  4. Access SiteView-Web server:
    From your computer or other devices’ web browser, enter the following address:

    http://[IP address of the Linux System]

    You should be able to see the site similar to this: