Kaptain.
Telegram /
LinkedIn /
Email /
GIT /
RSS /
GPG /
Заказ печатных плат

№ 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: Love is eating her even when she's not having her period.
Leave a Reply