N
N
Nocy2019-02-24 21:17:22
Web servers
Nocy, 2019-02-24 21:17:22

Apache vs. Nginx - which is better?

I have often heard that Apache is combined with Nginx.
Which of these servers is better to use? Or maybe they work well only in conjunction? And can or should I use Nginx without Apache?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yar Rick, 2019-02-24
@Yar_Rick

What is better tank or bike? It is incorrect to ask a question like this, you need to choose based on the requirements for the project. For a simple site, one Nginx is enough, I use this option. Apache is an application server, not just a web server, most likely some complex projects cannot do without it. Apache is a tank, heavy, powerful, consumes a lot of resources. At first I used it because I had no experience with Nginx. After I figured out Nginx, it turned out that it is like a bicycle - light, sometimes it goes even faster, requires little and is quite convenient. For VPS with 1 GB of RAM and below and simple projects (for example, one or two Wordpress blogs) I recommend it.
Nginx in conjunction with Apache is used to host statics or other requests where a tank is not needed and you can ride a bike.

A
Andrey, 2019-02-24
@VELIK505

google.com/search?q=apache%20vs%20nginx

R
Roman, 2019-02-24
@procode

I once tried Nginx without Apache - it turned out to be a very slow system. Maybe I, of course, configured something wrong, but my forum under Nginx + FPM worked slower than Apache.
In addition, Apache is easier to set up than Nginx, at least due to the presence of .htaccess - it's very convenient to set up folders.
But in general, if we are talking about a loaded resource, of course you need to put them in a bundle: Apache for PHP, and Nginx for the rest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question