Page 1 of 2

Why use nginx and apache together?

Posted: Mon Jul 07, 2014 8:34 pm
by cagatay
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

Re: Why use nginx and apache together?

Posted: Mon Jul 07, 2014 9:34 pm
by imperio
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?

Posted: Mon Jul 07, 2014 11:01 pm
by cagatay
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)
Pls excuse me but what do you mean by static and backend? Backend for vesta interface? Or Nginx caches apache? Please explain :(

Re: Why use nginx and apache together?

Posted: Tue Jul 08, 2014 11:28 am
by erldcrtz
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

Re: Why use nginx and apache together?

Posted: Wed Jul 09, 2014 3:24 pm
by cagatay
Thank you, now I get it all.

Re: Why use nginx and apache together?

Posted: Tue Jul 22, 2014 1:50 pm
by droopy
nginx is very unstable, plenty of bugs and crash in all servers. bad gateway errors, etc.
I prefer to disable it.

Re: Why use nginx and apache together?

Posted: Sat Jul 26, 2014 11:45 pm
by erldcrtz
droopy wrote:nginx is very unstable, plenty of bugs and crash in all servers. bad gateway errors, etc.
I prefer to disable it.
then perhaps you should tell majority BIG sites to stop using nginx

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?

Posted: Mon Aug 04, 2014 1:36 pm
by cagatay
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.

Re: Why use nginx and apache together?

Posted: Mon Aug 04, 2014 3:07 pm
by imperio
Unfortunately I gave up on VestaCP
Sorry, but it's your choice

Re: Why use nginx and apache together?

Posted: Mon Aug 04, 2014 3:12 pm
by cagatay
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...