TUTORIAL: Change the access port to the web interface
Estimated reading: 2 minutes
You may need to run the NGINX web server on a port other than port 80. Here is how you can change the NGINX port number on Ubuntu. The same steps can be applied to change the NGINX port number on Windows, Linux, and Mac.
Prerequisites
Access your PBXware instance via SSH using an SSH client.
Connect using an SSH client or via a command prompt to your host on port 2020:
ssh root@192.168.1.1 -p 2020 Edit the nginx.conf file
Open the terminal and run the following command:
nano /opt/pbxware/pw/etc/nginx/nginx.conf Reach the configuration line ##ssl portion:
[...] ##ssl portion server { listen 443 ssl http2 so_keepalive=on; listen [::]:443 ssl http2 so_keepalive=on; root /home/sitemanager/admin; [...] } Change the default port to the desired port:
[...] ##ssl portion server { listen 9443 ssl http2 so_keepalive=on; listen [::]:9443 ssl http2 so_keepalive=on; root /home/sitemanager/admin; [...] } Close the text editor with the command CTRL+X save the changes by pressing the Y
Restart nginx
Finally, restart PBXware to restart the web server with the following command:
/opt/pbxware/sh/start Now access your PBXware instance using the new port:

