Page 1 of 1
Nginx Default Port
Posted: Sat Dec 21, 2013 8:44 pm
by imperahost
Hello, Please could someone help me with Vestacp?
How can I change default port of Nginx, so that each new web domain added automatically listed on the door you choose for nginx?
Re: Nginx Default Port
Posted: Sun Dec 22, 2013 7:07 am
by imperahost
i found on nginx caching.tpl
server {
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
error_log /var/log/%web_system%/domains/%domain%.error.log error;
just change
server {
listen %ip%:8085;
server_name %domain_idn% %alias_idn%;
error_log /var/log/%web_system%/domains/%domain%.error.log error;
correct?
Re: Nginx Default Port
Posted: Tue Dec 24, 2013 2:48 pm
by skid
Yes that's fine. The other way to change the port is to set PROXY_PORT='8085' in /usr/local/vesta/conf/vesta.conf
Re: Nginx Default Port
Posted: Sat Dec 28, 2013 9:08 am
by imperahost
skid wrote:Yes that's fine. The other way to change the port is to set PROXY_PORT='8085' in /usr/local/vesta/conf/vesta.conf
Thanks for responding. I managed to install Varnish with Vesta, success, but the only difference in performance was improved TTFB that and maybe a few tenths of seconds, maybe because my VPS has low memory?