Disabling IPv6 Support in Shares

By default, the Nginx web server in Shares is configured to listen on IPv6 ports in addition to the standard IPv4 ports. If your operating system does not support IPv6, Nginx is unable to start and Shares fails to load for your users. To disable IPv6 support in Shares, you must edit the nginx.conf configuration file.

  1. Edit the nginx.conf configuration file, located at:
    C:\Shares\nginx\conf\nginx.conf
  2. In the server sections, comment out the following lines:
    listen [::]:80;
    listen [::]:443 ssl;
    After making the changes, your nginx.conf server sections may look like the following example:
    server {
        listen 80;
        # listen [::]:80;
    
        return ^ 301 https://$host$request_uri;
    }
                        
    server {
        listen 443 ssl;
        # listen [::]:443 ssl;
    
    
        [...]
    }
  3. Save your changes.
  4. Reload the nginx.conf file with the following command:
    > cd C:\Shares\nginx
    > nginx -s reload
  5. Test your changes. Try to access Shares by entering an IPv6 address in the browser.