08-05-2019, 12:02 PM
Hi guys,
The default port for VestaCP is 8083. In this tutorial, I shall be showing you how to change it.
Regards,
The default port for VestaCP is 8083. In this tutorial, I shall be showing you how to change it.
- Log into your Vesta Control Panel.
- Click on Firewall on Your Vesta menu
- Click on the Green Plus button to add the New Port
- I will be changing my port to 2019. For the new port, add the details as follows:
Code: (Select All)Action: ACCEPT
Protocol: TCP
Port: 2019
IP Address: 0.0.0.0/0
Then click Add, to add the new port to your Firewall.
- Next edit the NGINX config file to listen to the new port, in my case 2019.
- To do this, login into your SSH client. Make sure you are the root user or a user with root (sudo) privileges.
- Issue the following command:
Code: (Select All)sudo vi /usr/local/vesta/nginx/conf/nginx.conf
- Press the INSERT key.
- Scroll down to the area which says:
Code: (Select All)listen 8083;
- And change it to:
Code: (Select All)listen 2019;
- Then exit out of the editor by pressing Esc key and then type :wq and press Enter.
- Then restart Vesta using the Command below.
Code: (Select All)sudo service vesta restart
- Now log into your VestaCP using the new port as follows.
Code: (Select All)Your-IP-Address:2019
- Finally, you may delete the old port, 8083.
To delete the port 8083 from your Firewall, just click on Firewall on your Top Menu within Vesta.
Then hover over port 8083 and delete it.
Regards,