Changing Nginx Ports

  1. Edit the IBM Aspera Shares nginx.config file.
    C:\\Shares\nginx\conf\nginx.conf.
  2. Update the HTTP and HTTPS server blocks with your desired ports.
    These are the default settings for the two server blocks:
    server {
        listen          80;
        rewrite ^ https://$host$request_uri? permanent;
    }
                        
    server {
        listen          443;
        root             .../www/public;
    
        [...]
    }
    Update the values of the listen and rewrite directives with the desired ports (for example, 9080 and 9443).
    server {
        listen          9080;
        rewrite ^ https://$host:9443$request_uri? permanent;
    }
                        
    server {
        listen          9443;
        root            .../www/public;
    
        [...]
    }
  3. Reload the nginx.config file with the following command:
    > cd C:\\Shares\nginx
    > nginx -s reload