Пыилься подружить Nginx-Unit с OcStore 3 не вышло!
 
	Т.к OcStore 3 заводится с пинка:
 
    location / {
        try_files $uri @opencart;
    }
    location @opencart {
        rewrite ^/(.+)$ /index.php?_route_=$1 last;
    }
    if (!-e $request_filename) {
        rewrite ^/(.*)$ /index.php?_route_=$1 last;
    }
	 
 
	Не могу как эти костыли перекинуть в nginx-unit!
 
	 
 
	Создал 2 конфига оба не рилииют!
 
	Первая версия:
 
{
	"listeners": {
		"127.0.0.1:8380": {
			"application": "opencart"
		}
	},
	"applications": {
		"opencart": {
			"type": "php",
			"user": "user_site",
			"group": "user_site",
			"processes": {
				"max": 20,
				"spare": 5
			},
			"root": "/var/www/site.com/public_html/",
			"index": "index.php"
		}
	}
}
	 
 
	И втрорая:
 
{
 "listeners": {
 "127.0.0.1:8380": {
  "application": "index_php_script"
 },
 "127.0.0.1:8381": {
  "application": "direct_php"
 }
},
"applications": {
 "index_php_script": {
  "type": "php",
   "processes": {
    "max": 20,
    "spare": 5
   },
  "user": "user_site",
  "group": "user_site",
  "root": "/var/www/site.com/public_html",
  "script": "index.php"
 },
"direct_php": {
 "type": "php",
 "processes": {
  "max": 25,
  "spare": 5
  },
 "user": "user_site",
 "group": "user_site",
 "root": "/var/www/site.com/public_html",
 "index": "index.php"
 }
 }
}
	А сам конфиг nginx-default:
 
upstream index_php_upstream {
 server 127.0.0.1:8380; 
}
upstream direct_php_upstream {
 server 127.0.0.1:8381; 
}
server {
 listen 443;
 server_name localhost;
 root /site/pub...;
 location / {
  try_files $uri @index_php;
 }
 location @index_php {
  proxy_pass http://index_php_upstream;
  proxy_set_header Host $host;
 }
 location /admin {
  index index.php;
 }
 location ~* \.php$ {
  try_files $uri =404;
  proxy_pass http://direct_php_upstream;
  proxy_set_header Host $host;
 }
}
	Может кто уже юзает Ngin-Unit?
 
	Погделитесть помощью!