Page 1 of 1

Custom Vestacp Port

Posted: Thu Dec 01, 2016 10:46 am
by shanjie
1. Change the default vesta port sometime ago.
2. Forgotten the customised port and unable to access to the CP

What should I do?

Re: Custom Vestacp Port

Posted: Thu Dec 01, 2016 10:58 am
by Mr.Erbutw
/usr/local/vesta/nginx/conf/nginx.conf

Code: Select all

    server {
        listen          8083;
#server_name     _;
server_name     domain.ru;

#check come
  if ($host != "domain.ru") {
        return 403;
    }

Re: Custom Vestacp Port

Posted: Sun Dec 04, 2016 7:02 am
by shanjie
Mr.Erbutw wrote:/usr/local/vesta/nginx/conf/nginx.conf

Code: Select all

    server {
        listen          8083;
#server_name     _;
server_name     domain.ru;

#check come
  if ($host != "domain.ru") {
        return 403;
    }
Hi, from which config file that I can see the current firewall setting?

Re: Custom Vestacp Port

Posted: Sun Dec 04, 2016 1:11 pm
by Mr.Erbutw
shanjie wrote:
Hi, from which config file that I can see the current firewall setting?
to scan ports can remember where you changed the port ?

Re: Custom Vestacp Port

Posted: Mon Dec 05, 2016 10:20 am
by skurudo
shanjie wrote:Hi, from which config file that I can see the current firewall setting?
I think you mean iptables?

Code: Select all

iptables -L

Re: Custom Vestacp Port

Posted: Wed Dec 07, 2016 11:25 am
by shanjie
Hi all,

problem solved by

iptables -A INPUT -p tcp -m tcp --dport 8083 -j ACCEPT