We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Why use nginx and apache together?
Why use nginx and apache together?
Hello,
I am happily running vesta cp for 3 months without any errors.
I am a linux newbie and I have a question.
Why do I have Nginx and Apache2 at the same time, when I run vesta ?
Does apache handle admin interface and nginx handle web sites ? Or... Nginx works in front of Apache2 and cache the requests (like a varnish server) and all http requests from outside are handled by nginx?
An explanation will highly be appreciated.
Regards,
Cagatay
I am happily running vesta cp for 3 months without any errors.
I am a linux newbie and I have a question.
Why do I have Nginx and Apache2 at the same time, when I run vesta ?
Does apache handle admin interface and nginx handle web sites ? Or... Nginx works in front of Apache2 and cache the requests (like a varnish server) and all http requests from outside are handled by nginx?
An explanation will highly be appreciated.
Regards,
Cagatay
Re: Why use nginx and apache together?
Hi,
you can disable nginx in the settings of your web domain (WEB section)
Apache working as backend
Nginx working as frontend (static)
you can disable nginx in the settings of your web domain (WEB section)
Apache working as backend
Nginx working as frontend (static)
Re: Why use nginx and apache together?
Pls excuse me but what do you mean by static and backend? Backend for vesta interface? Or Nginx caches apache? Please explain :(imperio wrote:Hi,
you can disable nginx in the settings of your web domain (WEB section)
Apache working as backend
Nginx working as frontend (static)
Re: Why use nginx and apache together?
nginx serves static files (images, css, html etc.) really fast and efficient and passes php and .htaccess requests to apache for processing
apache serves php and .htaccess (most cms site like wordpress needs it for rewrite) and if you throw in a php opcode cache like zend opcache or xcache it should serve php even faster
nginx + apache with php opcache = performance and server resource efficiency
I have a website in a $5 vps running vesta cp that servers millions of requests per month with minimal server resource usage.. I can fit in at least 5 more websites that has the same traffic with no problem because of this setup.
vesta is made for speed .. thats what I like about it..
if you would like to know more about these setups i suggest you start searching in google for more in depths explanation
apache serves php and .htaccess (most cms site like wordpress needs it for rewrite) and if you throw in a php opcode cache like zend opcache or xcache it should serve php even faster
nginx + apache with php opcache = performance and server resource efficiency
I have a website in a $5 vps running vesta cp that servers millions of requests per month with minimal server resource usage.. I can fit in at least 5 more websites that has the same traffic with no problem because of this setup.
vesta is made for speed .. thats what I like about it..
if you would like to know more about these setups i suggest you start searching in google for more in depths explanation
Re: Why use nginx and apache together?
Thank you, now I get it all.
Re: Why use nginx and apache together?
nginx is very unstable, plenty of bugs and crash in all servers. bad gateway errors, etc.
I prefer to disable it.
I prefer to disable it.
Re: Why use nginx and apache together?
then perhaps you should tell majority BIG sites to stop using nginxdroopy wrote:nginx is very unstable, plenty of bugs and crash in all servers. bad gateway errors, etc.
I prefer to disable it.
you should go tell cloudflare.com to stop using nginx
you should go back to cPanel
TROLL LOL LOL
Re: Why use nginx and apache together?
Unfortunately I gave up on VestaCP.
Because I don't want to stuck into apache (I got rid of it) and because roadmap dates are usually dismissed and because almost no F given by vesta developers.
Now I have a perfect system with nginx+php-fpm+apc+varnish+mariadb
I accomplished everything, speed - security - reliability - compatibility
I hope someday vesta completely gets rid of apache.
Because I don't want to stuck into apache (I got rid of it) and because roadmap dates are usually dismissed and because almost no F given by vesta developers.
Now I have a perfect system with nginx+php-fpm+apc+varnish+mariadb
I accomplished everything, speed - security - reliability - compatibility
I hope someday vesta completely gets rid of apache.
Re: Why use nginx and apache together?
Sorry, but it's your choiceUnfortunately I gave up on VestaCP
Re: Why use nginx and apache together?
I am not complaining. I am very well aware this is a free product.
it is the "user feedback" which makes a product succeed.
hoping you give any F...
it is the "user feedback" which makes a product succeed.
hoping you give any F...