Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx Default Port

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
imperahost
Posts: 19
Joined: Sat Sep 28, 2013 9:41 pm

Nginx Default Port
  • Quote

Post by imperahost » Sat Dec 21, 2013 8:44 pm

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?
Top

imperahost
Posts: 19
Joined: Sat Sep 28, 2013 9:41 pm

Re: Nginx Default Port
  • Quote

Post by imperahost » Sun Dec 22, 2013 7:07 am

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?
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Nginx Default Port
  • Quote

Post by skid » Tue Dec 24, 2013 2:48 pm

Yes that's fine. The other way to change the port is to set PROXY_PORT='8085' in /usr/local/vesta/conf/vesta.conf
Top

imperahost
Posts: 19
Joined: Sat Sep 28, 2013 9:41 pm

Re: Nginx Default Port
  • Quote

Post by imperahost » Sat Dec 28, 2013 9:08 am

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?
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password