63 lines
1.1 KiB
JSON
63 lines
1.1 KiB
JSON
{
|
|
"listeners": {
|
|
"*:80": {
|
|
"pass": "routes"
|
|
}
|
|
},
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"uri": [
|
|
"/w/index.php*",
|
|
"/w/load.php*",
|
|
"/w/api.php*",
|
|
"/w/thumb.php*",
|
|
"/w/opensearch_desc.php*",
|
|
"/w/rest.php*",
|
|
"/w/img_auth.php*"
|
|
]
|
|
},
|
|
"action": {
|
|
"pass": "applications/php_app/direct"
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"uri": [
|
|
"!*.php",
|
|
"/w/images/*",
|
|
"/w/resources/assets/*",
|
|
"/w/resources/lib/*",
|
|
"/w/resources/src/*",
|
|
"/w/extensions/*",
|
|
"/w/skins/*"
|
|
]
|
|
},
|
|
"action": {
|
|
"share": "/var/www/html$uri"
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"uri": ["/wiki/*"]
|
|
},
|
|
"action": {
|
|
"pass": "applications/php_app/index"
|
|
}
|
|
}
|
|
],
|
|
"applications": {
|
|
"php_app": {
|
|
"type": "php",
|
|
"targets": {
|
|
"direct": {
|
|
"root": "/var/www/html"
|
|
},
|
|
"index": {
|
|
"root": "/var/www/html",
|
|
"script": "w/index.php"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|