How to Change VestaCP default port

To get started, first visit: https://server-ip:8083/list/firewall/

From the firewall configuration page, please click on the + icon to create a new firewall rule and use the following details to populate form. We’re using port 2083 in this example, though you can use any port that isn’t already in use.

Action: Accept
Protocol: TCP
Port: 2083
IP Address: 0.0.0.0/0

Click Save to add the rule to the firewall.

Once the firewall rule has been added, we’ll need to edit the NGINX configuration for VestaCP. Please login via SSH and navigate to /usr/local/vesta/nginx/conf/ using:

cd /usr/local/vesta/nginx/conf/

We’ll need to edit the nginx.conf file and change the port that NGINX listens on from 8083 to 2083 (or the port you chose to use).

nano nginx.conf

Change

listen          8083;

To

listen          2083;

Once the port has been changed, press CTRL+X, followed by y, and then hit enter to save your changes.

Now that we have an active firewall rule allowing us to accept connections on the new port and we’ve made the changes required to allow NGINX to listen on the new port, we’ll restart VestaCP to allow the changes to take effect:

service vesta restart

The final step is removing the firewall entry for the previous port we were using. To do this, we’ll visit https://[droplet-ip]:2083/list/firewall/ (notice, we’re using the new port in the URL now).

Hover over the firewall entry that shows 8083 and click on Delete, then OK. You’re done now.

Thank you for reading this article.

Was this helpful?

0 / 0

Leave a Reply 26

Your email address will not be published. Required fields are marked *


takipcisatinalin.org

takipcisatinalin.org

Its a pleasant post on the topic, all understand it is a
impressive article.

satınalis

satınalis

This piece of writing is genuinely a fastidious one it assists new web
people, who are wishing in favor of blogging.

epuyizinemixo

epuyizinemixo

Thanks for sharing such a nice idea, post is pleasant.

elibapilaaf

elibapilaaf

Really so nice post.

eteemumio

eteemumio

Please post more like this easy learning article.

idofuxi

idofuxi

I like this article very much!

awikinakeoxi

awikinakeoxi

From many days I am finding like this site, thank you.

ipoqupun

ipoqupun

Very helpful post, thanks

sgufzudaceoma

sgufzudaceoma

Really helpful article, please write more like this article.

urioxeluk

urioxeluk

Thanks bro!

icohbuc

icohbuc

Nice article

jeyogofedoj

jeyogofedoj

You are awesome!

Affilketing

Affilketing

I just couldn’t depart your site before suggesting that I extremely loved the standard info a person supply for your visitors? Is going to be back continuously in order to check out new posts.

Facboing

Facboing

I simply couldn’t depart your website before suggesting that I really enjoyed the standard information an individual provide to your guests? Is going to be again incessantly to check out new posts.

zovre lioptor

zovre lioptor

Deference to op, some fantastic information .

Monline

Monline

Wow, incredible blog layout! How long have you ever been blogging for? you made running a blog glance easy. The overall look of your website is fantastic.

zortilo nrel

zortilo nrel

Well I truly enjoyed reading it. This subject provided by you is very practical for correct planning.

snline

snline

Awesome blog. Will read on…

sbobet88

sbobet88

Keep functioning ,impressive job!

zoritomol

zoritomol

Appreciate it for this howling post, I am glad I noticed this site on yahoo.

sbobet88

sbobet88

What a stuff of un-ambiguity and preserveness of precious familiarity on the topic of unexpected
feelings.

treutter

treutter

I carry on listening to the news bulletin talk about getting boundless online grant applications so I have been looking around for the best site to get one. Could you tell me please, where could i find some?

Sbobet88

Sbobet88

I go to see each day some sites and websites to read posts, but this weblog gives quality based articles.

sbobe22

sbobe22

Heya i’m for the first time here. I found this board
and I find It really useful & it helped me out a lot. I
am hoping to present something back and aid others
like you aided me.

Tomasz Michałowski

Tomasz Michałowski

Just thought I would comment and say neat theme, did you design it for yourself? Looks great!

bobet88

bobet88

What’s up, yeah this paragraph is actually fastidious and I have learned lot of things from it on the topic of blogging.
thanks.