modif wco www pour caddy

This commit is contained in:
2025-07-11 11:16:22 +02:00
parent 2d3e33d643
commit 415f21b9de
17 changed files with 327 additions and 86 deletions

View 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"
}
}
}
}
}