1

Topic: Nginx vs Apache

What web the server on yours is better!?
And with what to begin learning Nginx?

2

Re: Nginx vs Apache

Areostar wrote:

what web the server on yours is better!?

They in general different tasks solve that.

Areostar wrote:

And with what to begin learning Nginx?

With

3

Re: Nginx vs Apache

Areostar wrote:

what web the server on yours is better!?
And with what to begin learning Nginx?

These are different servers. The apache it for application-oriented tasks, start of everyones PHP and other that is born quickly to die (live to die),
nginx - for static not killed tasks where the hand-foot of the typical does not go.... The application-oriented coder, like distribution of files from a disk or reverse .
Simply in nginx all is twisted in uniform address space of one process, and  the died session can destroy a civilization.
In the apache on the contrary - sessions are isolated from each other at level  through separate processes and can behave in a queer way the PHP to itself in process everything.
But the apache badly approaches generally for clients normally sit far and at slow channels that forces it to spend
All resources of process (storage) to give unfortunate pair kilobyte to the client.
Therefore before the apache it is accepted to put nginx (a reverse proxy) - the apache quickly accepted request, processed, gave reversely nginx and went
Other client to process, and here nginx will already suffer with delivery of result to the client, spending thus a minimum of storage and other forces.
Though what for nginx if is haproxy? But it already other history.

4

Re: Nginx vs Apache

dbpatch wrote:

it is passed...
These are different servers. The apache it for application-oriented tasks, start of everyones PHP and other that is born quickly to die (live to die),
nginx - for static not killed tasks where the hand-foot of the typical does not go.... The application-oriented coder, like distribution of files from a disk or reverse .
Simply in nginx all is twisted in uniform address space of one process, and  the died session can destroy a civilization.
In the apache on the contrary - sessions are isolated from each other at level  through separate processes and can behave in a queer way the PHP to itself in process everything.
But the apache badly approaches generally for clients normally sit far and at slow channels that forces it to spend
All resources of process (storage) to give unfortunate pair kilobyte to the client.
Therefore before the apache it is accepted to put nginx (a reverse proxy) - the apache quickly accepted request, processed, gave reversely nginx and went
Other client to process, and here nginx will already suffer with delivery of result to the client, spending thus a minimum of storage and other forces.
Though what for nginx if is haproxy? But it already other history.

I see. Simply met one firm where their advertizing  sit on nginx. Here also I think what for?
Though all the same it is necessary to disassemble a subject))

5

Re: Nginx vs Apache

dbpatch;
nginx is able to work with a pool of php-processes

6

Re: Nginx vs Apache

Areostar wrote:

it is clear. Simply met one firm where their advertizing  sit on nginx. Here also I think what for?
Though all the same it is necessary to disassemble a subject))

Because advertizing is to show a static invariable content at once to a large quantity of the clients, program logic any there on the server it is not necessary, and here ability to give quickly and is a lot of all who feel like it - is necessary.
And there where it is necessary program - there is any tomkat or still something, for certain, and  dynamic html/js, but it is normal 0.1 % from the general traffic

7

Re: Nginx vs Apache

wrote:

dbpatch;
nginx is able to work with a pool of php-processes

Yes, with  standing PHP-FPM. But at once  a question - and why simply not to use for these purposes apache?

8

Re: Nginx vs Apache

dbpatch wrote:

yes, with  standing PHP-FPM. But at once  a question - and why simply not to use for these purposes apache?

Because the apache  it is necessary to isolate from  a pattern;
And if at the apache thus unique function php scripts to launch - that  it is necessary?

9

Re: Nginx vs Apache

wrote:

it is passed...
Because the apache  it is necessary to isolate from  a pattern;
And if at the apache thus unique function php scripts to launch - that  it is necessary?

And PHP-FPM it is possible to expose at once in the Internet, yes?
The answer  is axiomatic - the apache is unlike more advanced, plus you never know that else there it is required to you, except start PHP. Can ACL what advanced, or rewrite everyones...
No difference on  and to the other moments there is present, and and so it is necessary to fence for nginx th something, for it not
Can PHP from a birth.
But if you the esthete yes, it is possible to pile everything such if only the eye rejoiced and job security  smile

10

Re: Nginx vs Apache

dbpatch;
Clearly, simply at them a site on wordpress

11

Re: Nginx vs Apache

dbpatch wrote:

it is passed...
Yes, with  standing PHP-FPM. But at once  a question - and why simply not to use for these purposes apache?

Because it a brake and in soles nginx is not necessary
And without php-fpm to start up scripts it generally

12

Re: Nginx vs Apache

Areostar, begin with it:

https://ruhighload.com/post/++Nginx_20160622
http://nginx.org/en/docs/http/ngx_http_core_module.html (req_conn directives
http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
http://nginx.org/ru/docs/varindex.html variables
https://nginx.com/resources/admin-guide/hands-in of administrators
https://nginx.com/resources/admin-guide/nginx-web-server/ hands-in of administrators Web Server
http://romantelychko.com/blog/1303/
http://habrahabr.ru/post/66764/ here with the apache
http://nginx.org/ru/docs/http/ngx_http_fastcgi_module.html the official documentation
http://nginx.com/resources/admin-guide/web-server/ administration
http://habrahabr.ru/post/56497/ tuning nginx
http://habrahabr.ru/company/centosadmin/blog/255343/ As we beat off xss/sql attack with Nginx and Naxsi
http://habrahabr.ru/post/260669/ Thread pools: we accelerate NGINX in 9 and more times
http://wiki.diphost.ru/Recipe_nginx_Drupal the recipe of a configuration for Drupal
https://www.nginx.com/resources/wiki/modules/ units
http://wiki.nginx.org/HttpAuthBasicModule AUTH

13

Re: Nginx vs Apache

tip78;
Thanks for links!

14

Re: Nginx vs Apache

nginx - the reverse proxy, With, TLS, gzip, , url rewrite, consumes very little, very quickly works
apache - an application server, Java, more slowly, very old, a heap  for all occasions.

15

Re: Nginx vs Apache

scf wrote:

Java

?

16

Re: Nginx vs Apache

wrote:

it is passed...
?

) and truth, With.

17

Re: Nginx vs Apache

Ah-ah!

18

Re: Nginx vs Apache

scf wrote:

it is passed...
) and truth,

java here there is nothing!

19

Re: Nginx vs Apache

dbpatch wrote:

it is passed...
And PHP-FPM it is possible to expose at once in the Internet, yes?
The answer  is axiomatic - the apache is unlike more advanced, plus you never know that else there it is required to you, except start PHP. Can ACL what advanced, or rewrite everyones...
No difference on  and to the other moments there is present, and and so it is necessary to fence for nginx th something, for it not
Can PHP from a birth.
But if you the esthete yes, it is possible to pile everything such if only the eye rejoiced and job security  smile

1. At nginx  and acl the same powerful
2. A difference on  and furthermore on consumed storage it is huge if not  to take finite where to itself the user
3. nginx from a birth everything can that is able fastcgi, wsgi and others

20

Re: Nginx vs Apache

scf wrote:

it is passed...
) and truth,

Here and I was surprised!

21

Re: Nginx vs Apache

Karbafos;
Clearly, I will understand!