Page 1 of 2

vesta-nginx source code?

Posted: Wed Aug 05, 2020 10:30 pm
by skydiver
My understanding is that Vesta is Open Source. I'm trying to find the source code for vesta-nginx that is found at /usr/local/vesta/nginx/sbin/.

I tried looking at the other repositories owned by serghey-rodin, but these were all that I found:
vesta
rainloop-webmail
roundcubemail

Is there another place where I should be looking?

Re: vesta-nginx source code?

Posted: Thu Aug 06, 2020 7:30 pm
by anibalhost
Tell me exactly what you want to do with those codes and see if I can help

Re: vesta-nginx source code?

Posted: Thu Aug 06, 2020 8:43 pm
by grayfolk
skydiver wrote:
Wed Aug 05, 2020 10:30 pm
My understanding is that Vesta is Open Source. I'm trying to find the source code for vesta-nginx that is found at /usr/local/vesta/nginx/sbin/.

I tried looking at the other repositories owned by serghey-rodin, but these were all that I found:
vesta
rainloop-webmail
roundcubemail

Is there another place where I should be looking?
This is regular nginx, just service called vesta-nginx for will be difference with standalone nginx service.

Re: vesta-nginx source code?

Posted: Thu Aug 06, 2020 9:52 pm
by skydiver
I wanted to see how it knows to load the nginx configuration files from /usr/local/vesta/nginx/conf/ as well as the standard /etc/nginx/nginx.conf.

@grayfolk: Are you saying that regular nginx knows to load configuration from /usr/local/vesta/nginx/conf/nginx.conf before the standard /etc/nginx/nginx.conf ?

Re: vesta-nginx source code?

Posted: Thu Aug 06, 2020 10:08 pm
by Sheepings
I too am also interested to know where the documentation is for this, as I need to know as I am working on some template based plugins.

Can someone clarify where this documentation is and why It doesn't appear to be public?

Or perhaps I've been looking in the wrong location. I too also looked through the same Github link above. But there is no information available on this.

Some clarity on this subject would really help.

Many thanks.

Re: vesta-nginx source code?

Posted: Thu Aug 06, 2020 11:49 pm
by grayfolk
skydiver wrote:
Thu Aug 06, 2020 9:52 pm

@grayfolk: Are you saying that regular nginx knows to load configuration from /usr/local/vesta/nginx/conf/nginx.conf before the standard /etc/nginx/nginx.conf ?
Nginx can compiled with another config path. Read http://nginx.org/en/docs/configure.html

Re: vesta-nginx source code?

Posted: Fri Aug 07, 2020 12:01 am
by skydiver
Yes, I know about that. But that only changes one path. How is it managing two paths?

Re: vesta-nginx source code?

Posted: Fri Aug 07, 2020 12:17 am
by grayfolk
skydiver wrote:
Fri Aug 07, 2020 12:01 am
Yes, I know about that. But that only changes one path. How is it managing two paths?
What you mean?

Re: vesta-nginx source code?

Posted: Fri Aug 07, 2020 1:41 am
by skydiver
If vesta-nginx is compiled to load the configuration from /usr/local/vesta/nginx/conf/nginx.conf, how is it also loading the configuration from /etc/nginx/nginx.conf?

Or are there two separate copies of nginx running? And if there are two separate copies, why not just use one copy and run it twice: once for vesta, and the second time for hosting?

Re: vesta-nginx source code?

Posted: Fri Aug 07, 2020 3:10 am
by grayfolk
skydiver wrote:
Fri Aug 07, 2020 1:41 am
Or are there two separate copies of nginx running?
Yes, sure. You ask this in first post - second copy called vesta-nginx.
skydiver wrote:
Fri Aug 07, 2020 1:41 am
And if there are two separate copies, why not just use one copy and run it twice: once for vesta, and the second time for hosting?
First, if nginx already running - you cant run it again. For create another nginx instance you should create another nginx build.
Second, see: idea is Vesta still continue working if any problems with sites. This is simple practice for server panels - panel should be isolated from hosted sites.