№ 10457 В разделе
Sysadmin
от December 16th, 2019,
В подшивках: CodeIgniter, PHP, Unit
Share all static files in subdirectories, all others requests goes to index.php of application.
{ "listeners": { "*:8300": { "pass": "routes" } }, "applications": { "app": { "type": "php", "user": "www-data", "group": "www-data", "root": "/www/app", "index": "index.php", "script": "index.php" } }, "routes": [ { "match": { "uri": "/pics/*" }, "action": { "share": "/www/app/" } }, { "match": { "uri": "/images/*" }, "action": { "share": "/www/app/" } }, { "match": { "uri": "/cover/*" }, "action": { "share": "/www/app/" } }, { "action": { "pass": "applications/app" } } ], "access_log": "/var/log/access.log" }
Fortune cookie: Psychotherapy is the theory that the patient will probably get well anyhow and is certainly a damn fool. -- H. L. Mencken
Leave a Reply