R
R
Roma2014-02-02 08:59:44
Nginx
Roma, 2014-02-02 08:59:44

What and where can I read about apache and nginx?

What and where can I read about apache and nginx? Why do they sometimes use apache + nginx and sometimes just nginx? What is the difference and which is correct?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ingtar, 2014-02-02
@Ingtar

If you use nfinx + apache, then more often nginx is placed on the front, apache on the backends. To be honest, I don’t know why it’s used this way, for me the nginx-nginx bundle is much more convenient in terms of a) similar configs 2) lack of a zoo from the software.
I don't think there is a single correct answer here. Put what is more convenient for you.

R
Ruslan Kasymov, 2014-02-02
@HDAPache

Apache is often used because of .htaccess and (mod_rewrite in particular in it), since no one will give access to the nginx config file from the same host providers, and you need to configure some things for yourself and not only in relation to the web -server but also relative to PHP (php_value).
A lot of people use Apache simply because they are used to it. I completely switched to nginx (load-balancer) -> nginx + php-fpm (or passenger in ruby ​​cases) myself. Because in nginx IMHO, writing a config is much more convenient and more flexible.

O
OnYourLips, 2014-02-02
@OnYourLips

1. Documentation of nginx
2, 3. Apache + nginx together are needed on hostings that use old applications that are too lazy to rewrite .htaccess. In today's PHP world, apache may only be needed if some exotic modules are needed.
4.nginx

K
kompi, 2014-02-02
@kompi

1. Official docs for apache and nginx, plus Google (see current articles);
2. Previously, nginx was young and did not know how much, like php-fpm. There were no alternatives to the popular apache. With the gradual improvement of the software, transitional bundles nginx-apache (php) appeared. And at the moment, the nginx-php-fpm bundle is in full use.
3. Apache itself is heavy. Nginx - lightweight and more functional, besides it is actively developed, plus many modules.
4. That you know how to cook. If you have not had to deal with apache and nginx before, install apache, nginx, php-fpm locally. Take any popular cms and test it in 3 versions. At the same time you will see the difference in the configs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question