Z
Z
zar0ku12014-08-09 08:51:28
PHP
zar0ku1, 2014-08-09 08:51:28

How to make different php-fpm pools for different site pages?

Hello,
there was a need to move the site admin panel to a separate php-fpm pool with its own settings,
how to do it right?
ps admin is located at /admin

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Petrikov, 2014-08-09
@RicoX

Make a separate location, set up a separate pool, wrap the front-end location on this pool.

S
Salavat Sitdikov, 2014-08-09
@zona7o

You prescribe the location admin first, then for everything else. When nginx determines the location, these settings will be taken for all pages with /admin. @RicoX has already explained everything to you , only the block for pop files is superfluous.

P
Puma Thailand, 2014-08-09
@opium

Create two pools
for location / first
for location /admin second

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question