modif wco www pour caddy
This commit is contained in:
72
wwws/apx/test.apx.apxtri.farm.ants.json
Normal file
72
wwws/apx/test.apx.apxtri.farm.ants.json
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"apps": {
|
||||
"http": {
|
||||
"servers": {
|
||||
" ": {
|
||||
"listen": [
|
||||
":80"
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"match": [
|
||||
{
|
||||
"path": [
|
||||
"/src/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"handle": [
|
||||
{
|
||||
"handler": "rewrite",
|
||||
"strip_path_prefix": "/src"
|
||||
},
|
||||
{
|
||||
"handler": "file_server",
|
||||
"root": "/media/phil/usbfarm/apxtowns/data/apxtri/objects/wwws/apx/src/",
|
||||
"index_names": [
|
||||
"index.html",
|
||||
"index_fr.html",
|
||||
"index_en.html"
|
||||
]
|
||||
}
|
||||
],
|
||||
"terminal": true
|
||||
},
|
||||
{
|
||||
"match": [
|
||||
{
|
||||
"host": [
|
||||
"apx.apxtri.farm.ants"
|
||||
]
|
||||
}
|
||||
],
|
||||
"handle": [
|
||||
{
|
||||
"handler": "file_server",
|
||||
"root": "/media/phil/usbfarm/apxtowns/data/apxtri/objects/wwws/apx/dist",
|
||||
"index_names": [
|
||||
"index.html",
|
||||
"index_fr.html",
|
||||
"index_en.html"
|
||||
]
|
||||
}
|
||||
],
|
||||
"terminal": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"logging": {
|
||||
"logs": {
|
||||
"default": {
|
||||
"level": "DEBUG",
|
||||
"writer": {
|
||||
"output": "file",
|
||||
"filename": "/var/log/caddy/access.log"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user