Nginx Default Port
-
- Posts: 19
- Joined: Sat Sep 28, 2013 9:41 pm
Nginx Default Port
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?
How can I change default port of Nginx, so that each new web domain added automatically listed on the door you choose for nginx?
-
- Posts: 19
- Joined: Sat Sep 28, 2013 9:41 pm
Re: Nginx Default Port
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?
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
Yes that's fine. The other way to change the port is to set PROXY_PORT='8085' in /usr/local/vesta/conf/vesta.conf
-
- Posts: 19
- Joined: Sat Sep 28, 2013 9:41 pm
Re: Nginx Default Port
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?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