Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Default is to use pool 1
- set $custom_php_pool "1";
- # If is /admin, we use pool 2
- if ($uri ~* "^/index.php/admin/") {
- set $custom_php_pool "2";
- }
- if ($uri ~* "^/qbonline/") {
- set $custom_php_pool "2";
- }
- if ($uri ~* "^/api/") {
- set $custom_php_pool "1";
- }
- if ($uri ~* "^/index.php/admin/sales_order_create/") {
- set $custom_php_pool "1";
- }
- if ($uri ~* "^/index.php/admin/sales_order_edit/") {
- set $custom_php_pool "1";
- }
- location ~ \.php$ {
- if ($custom_php_pool = '1') {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- }
- if ($custom_php_pool = '2') { fastcgi_pass 127.0.0.1:9007; }
- fastcgi_index index.php;
- fastcgi_read_timeout 600;
- include fastcgi_params;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement