V
V
vovochka4042015-01-15 04:12:43
PHP
vovochka404, 2015-01-15 04:12:43

Nginx+php-fpm: sometimes another virtual host opens, how to fix it?

There is a bunch of php-fpm + nginx on centos 7.
There are several virtual hosts.
Each host with its own pool

pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 3

The following problem occurs:
Opening one domain may open a page from another virtual host.
Who is to blame for this behavior, nginx or php-fpm and how to fix it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex Pts, 2015-01-15
@AlexPTS

Most likely it is in the nginx host settings, document_root points to the folder with the site root.

E
Eugene, 2015-01-15
@Nc_Soft

The culprit is definitely nginx, or rather your configs.

A
Archie Kuznetsov, 2015-01-16
@Wolf4ara

Good afternoon!
And by chance, the site that should not open, but is opened by default is not? It happened to me when the site in NGINX was set to ipisheng by default (in addition to the site name, ipisheng was specified in the name service)

V
vovochka404, 2015-01-20
@vovochka404

Despite the opinions of local analysts, php-fpm was to blame .
Namely, the joint use of chroot and optimizer (in my case, zend-opcache).
regilero.github.io/Drupal/English/2013/05/16/Warni...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question