We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Adding Nginx to an existing VestaCP installation
Adding Nginx to an existing VestaCP installation
Hello,
I'm managing an existing Vesta CP installation currently has Apache and no Nginx. I'd like to add Nginx to it.
I have found this topic that is similar to mine however he is on a different OS and it's from several years ago, so I figured it'd be worth asking for assistance.
If I understand correctly, the procedure on Debian would be:
1.
Install the Nginx package
2.
Add these lines to /usr/local/vesta/conf/vesta.conf
However I'm guessing I'd then also have to edit these 2 lines currently in the file
to
Meaning I'd end up with these lines
3.
Edit the file /etc/apache2/conf.d/[server-IP].conf from
to
4.
Run this command
And I believe that should be it.
Does this seem correct?
Thank you for any assistance,
Oerlikon
I'm managing an existing Vesta CP installation currently has Apache and no Nginx. I'd like to add Nginx to it.
I have found this topic that is similar to mine however he is on a different OS and it's from several years ago, so I figured it'd be worth asking for assistance.
If I understand correctly, the procedure on Debian would be:
1.
Install the Nginx package
Code: Select all
apt-get install nginx
Add these lines to /usr/local/vesta/conf/vesta.conf
Code: Select all
PROXY_SYSTEM='nginx'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
Code: Select all
WEB_PORT='80'
WEB_SSL_PORT='443'
Code: Select all
WEB_PORT='8080'
WEB_SSL_PORT='8443'
Code: Select all
WEB_PORT='8080'
WEB_SSL_PORT='8443'
PROXY_SYSTEM='nginx'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
Edit the file /etc/apache2/conf.d/[server-IP].conf from
Code: Select all
Listen [server-IP]:80
Listen [server-IP]:443
Code: Select all
NameVirtualHost [server-IP]:8080
Listen [server-IP]:8080
NameVirtualHost [server-IP]:8443
Listen [server-IP]:8443
Run this command
Code: Select all
for user in $(v-list-sys-users plain); do v-rebuild-web-domains $user; done
Does this seem correct?
Thank you for any assistance,
Oerlikon
Last edited by Oerlikon on Thu Feb 08, 2018 11:36 am, edited 1 time in total.
Re: Adding Nginx to an existing VestaCP installation
I can't find any question in your post? Save way: Install a new server and migrate the users (v-backup/restore-user).
Re: Adding Nginx to an existing VestaCP installation
I have clarified the question now. I am pretty much just looking for feedback if what I'm saying makes sense.
I suppose going the backup/restore route would be safe and fairly easy, just more time consuming.
I'll see if some other replies come in but that is a very good suggestion, thank you.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Adding Nginx to an existing VestaCP installation
If "time" is your priority, I guess doing a clean install on new server and migrating sites to it would be faster and more reliable. Trying to fix your old server would be a dicey affair and I presume you will end up more time fixing bugs and problems.