Problem Description


Please refer this article to enable secure access, i.e. to migrate from existing HTTP standard to HTTPS standard in Infoworks UI.


WORKAROUND/ RESOLUTION


ENABLING HTTPS ACCESS


Pre-requisite: Path to SSL certificates must be present on Infoworks server.


To enable HTTPS, please follow the below steps:

  1. Navigate to nginx conf directory. 


    cd $IW_HOME/resources/nginx/conf


  2. Append the following content in nginx.conf

        server {
    listen 443 ssl;
    ssl_certificate /etc/nginx/ssl/nginx.crt;
    ssl_certificate_key /etc/nginx/ssl/nginx.key;
    access_log

    /var/log/infoworks/nginx/apricot.access.log;
    error_log
    /var/log/infoworks/nginx/apricot.error.log;

    location / {
    proxy_pass http://127.0.0.1:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header X­Forwarded­For
    $remote_addr;
    }
    }


NOTE: The block must be added as a child block of ‘http’.
Replacements:
A. 
ssl_certificate: path to the SSL certificate .crt file
B. ssl_certificate_key: path to the SSL certificate key


    3.Restart nginx 

/resources/nginx­portable/nginx­portable restart


WARNING:

On some Unix systems, non-root users may not be allowed to start services listening on port 443. In that
case, you should edit nginx.conf and replace ‘443’ with ‘2000’ (or any available port > 1024).