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

vesta-nginx source code? Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
20 posts
  • 1
  • 2
  • Next
skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
vesta-nginx source code?
  • Quote

Post by skydiver » 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?
Top

anibalhost
Posts: 3
Joined: Thu Aug 06, 2020 7:26 pm
Contact:
Contact anibalhost
Website

Os: CentOS 4x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by anibalhost » Thu Aug 06, 2020 7:30 pm

Tell me exactly what you want to do with those codes and see if I can help
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Thu Aug 06, 2020 8:43 pm

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

skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Thu Aug 06, 2020 9:52 pm

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

Sheepings
Posts: 1
Joined: Thu Aug 06, 2020 10:00 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by Sheepings » Thu Aug 06, 2020 10:08 pm

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

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Thu Aug 06, 2020 11:49 pm

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
Top

skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Fri Aug 07, 2020 12:01 am

Yes, I know about that. But that only changes one path. How is it managing two paths?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Fri Aug 07, 2020 12:17 am

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

skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Fri Aug 07, 2020 1:41 am

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

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Fri Aug 07, 2020 3:10 am

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


Post Reply
  • Print view

20 posts
  • 1
  • 2
  • Next

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
 

 

cron

Login  •  Register

I forgot my password