SOLVED Change Web Port

Status
Not open for further replies.

mudasar321

Member
Apr 18, 2019
87
6
8
36
Hi, is there a way we can change fusionpbx web port. Right now it's accessible on 443. Can we change it?
 

ad5ou

Active Member
Jun 12, 2018
892
204
43
You can change the Nginx conf file to listen on a different port.
You would also need to open the new port in iptables
 

mudasar321

Member
Apr 18, 2019
87
6
8
36
Hi,

Can you please elaborate a little bit more how exactly I can? In ngnix.conf file I do not see any parameters to change it.

Thank You
 

ad5ou

Active Member
Jun 12, 2018
892
204
43
Assuming a default install on Debian.
nano /etc/nginx/sites-enabled/fusionpbx

Find the line that says: listen 443;
and change to the port you desire.
Should be around line 153
 

ad5ou

Active Member
Jun 12, 2018
892
204
43
hi,
how can change web port from 80 to 81?
The same way described above. Edit the nginx configs to use new port. The http port 80 entry is near the top of the file I mentioned in earlier post. You would also need to update iptables rules for the new port.

Keep in mind, the normal behavior of fusionpbx is to redirect web browsers to use https. Port 80 is only used for that redirection and optionally device provisioning for devices not capable of using https
 
Status
Not open for further replies.