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 General Discussion
  • Search

Why use nginx and apache together?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
18 posts
  • 1
  • 2
  • Next
cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Why use nginx and apache together?
  • Quote

Post by cagatay » Mon Jul 07, 2014 8:34 pm

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
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Why use nginx and apache together?
  • Quote

Post by imperio » Mon Jul 07, 2014 9:34 pm

Hi,
you can disable nginx in the settings of your web domain (WEB section)
Apache working as backend
Nginx working as frontend (static)
Top

cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Re: Why use nginx and apache together?
  • Quote

Post by cagatay » Mon Jul 07, 2014 11:01 pm

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 :(
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: Why use nginx and apache together?
  • Quote

Post by erldcrtz » Tue Jul 08, 2014 11:28 am

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
Top

cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Re: Why use nginx and apache together?
  • Quote

Post by cagatay » Wed Jul 09, 2014 3:24 pm

Thank you, now I get it all.
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Why use nginx and apache together?
  • Quote

Post by droopy » Tue Jul 22, 2014 1:50 pm

nginx is very unstable, plenty of bugs and crash in all servers. bad gateway errors, etc.
I prefer to disable it.
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: Why use nginx and apache together?
  • Quote

Post by erldcrtz » Sat Jul 26, 2014 11:45 pm

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
Top

cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Re: Why use nginx and apache together?
  • Quote

Post by cagatay » Mon Aug 04, 2014 1:36 pm

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

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Why use nginx and apache together?
  • Quote

Post by imperio » Mon Aug 04, 2014 3:07 pm

Unfortunately I gave up on VestaCP
Sorry, but it's your choice
Top

cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Re: Why use nginx and apache together?
  • Quote

Post by cagatay » Mon Aug 04, 2014 3:12 pm

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


Post Reply
  • Print view

18 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • 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
 

 

Login  •  Register

I forgot my password