Changing Nginx Ports

  1. Open the IBM Aspera Shares Nginx config file found at C:\\Shares\nginx\conf\nginx.conf.
  2. Update the 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:
                        
    server {
        listen          9080;
        rewrite ^ https://$host:9443$request_uri? permanent;
    }
                        
    server {
        listen          9443;
        root            .../www/public;
        [...]
    }
                          
  3. Tell Nginx to reload its config file.
    > cd C:\\Shares\nginx
    nginx -s reload