Page 1 of 1

Change port of the site

Posted: Tue Jun 04, 2019 4:01 pm
by zombak
Hello, prompt how to change default ports of the website 80,443 on other what files it is necessary to look and what to change? I would be very grateful.

Re: Change port of the site

Posted: Mon Jul 29, 2019 3:19 pm
by dreiggy
Hello,
you change default web ports in vesta config file:

Code: Select all

# grep PORT /usr/local/vesta/conf/vesta.conf
WEB_PORT='8080'
WEB_SSL_PORT='8443'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
When you will change ports, then you need restart vestacp and rebuild vhost configs:

Code: Select all

service vesta restart
for user in $(v-list-sys-users plain); do v-rebuild-web-domains $user; done