{ "listeners": { "*:80": { "pass": "routes" } }, "routes": [ { "match": { "uri": ["/index.php", "/index.php/*"] }, "action": { "pass": "applications/php_app" } }, { "match": { "uri": ["/api", "/api/*"] }, "action": { "rewrite": "/index.php$uri", "pass": "applications/php_app" } }, { "match": { "uri": ["/*"] }, "action": { "share": "/var/www/html/public$uri", "fallback": { "rewrite": "/index.php$uri", "pass": "routes" } } } ], "applications": { "php_app": { "type": "php", "root": "/var/www/html/public" } } }