Dart InnovationsDocs
License Web
dartinnovations.com

Configure a reverse proxy

Publish License Web through Nginx or IIS as a reverse proxy that forwards requests to the local License Web service.

A reverse proxy is the recommended way to publish License Web. You set it up as for any other web application: forward requests from your public URL to http://localhost:7070, or to your own port if you changed the default.

Nginx#

These steps are for Nginx on Linux. Apache and other Linux reverse proxies need a similar setup.

  1. Install Nginx if it is not installed yet:

    sudo apt install nginx
    
  2. Open the Nginx configuration file /etc/nginx/sites-available/default.

  3. Add the following server block. Replace the domain name and the SSL certificate paths with your own.

    server {
        listen 80;
        listen 443 ssl http2;
        server_name licenseweb.yourdomain.com;
        ssl_certificate     /etc/nginx/ssl/yourdomainssl.pem;
        ssl_certificate_key /etc/nginx/ssl/yourdomainssl.key;
    
        location / {
            proxy_pass         http://127.0.0.1:7070;
            proxy_http_version 1.1;
            proxy_set_header   Upgrade $http_upgrade;
            proxy_set_header   Connection keep-alive;
            proxy_set_header   Host $host;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Proto $scheme;
        }
    }
    
  4. Restart Nginx:

    sudo service nginx restart
    

License Web is now available on your public URL, behind Nginx.

IIS#

IIS works as a reverse proxy with the Application Request Routing (ARR) and URL Rewrite modules. To install them, see Setting up IIS as a reverse proxy.

Before you begin#

  • Check that IIS Manager shows the Application Request Routing and URL Rewrite icons.

    IIS Manager home page showing the Application Request Routing and URL Rewrite icons

  • Check that the proxy is enabled: select Application Request Routing, then Server Proxy Settings, and make sure Enable proxy is selected.

    The Application Request Routing Server Proxy Settings with Enable proxy selected

Add the reverse proxy rule#

  1. Create a website, or use an existing one.
  2. Configure the site bindings with your public URLs.
  3. Select the website, then open URL Rewrite.
  4. Select Add Rule(s), then Reverse Proxy.

    The Add Rule(s) dialog in URL Rewrite with the Reverse Proxy template selected

  5. In Inbound Rules, enter the address License Web listens on, for example localhost:7070. Under Outbound Rules, set From to the same address and To to your public domain.

    The Add Reverse Proxy Rules dialog with the inbound server, and outbound From and To fields filled in

  6. Select OK, then restart the website or IIS.

License Web is now available on your public URL through IIS.

Type at least two letters. Use ↑ ↓ and Enter to open a result.