1. Caddy version
v2
2. My complete Caddyfile
handle_path /admin/* {
file_server
root * /usr/share/caddy
try_files {path} /index.html
}
3.The problem I`m having:
Cant view any files, even index.html, all reuquest return a blank oage
4. Error messages and/or full log output:
log:
{"level":"info","ts":1641815104.1633272,"logger":"http.log.access","msg":"handled request","request":{"proto":"HTTP/1.1","method":"GET","host":"localhost","uri":"/admin/manifest.json","headers":{"Referer":["http://localhost/admin/login"],"Accept":["*/*"],"Sec-Ch-Ua-Mobile":["?0"],"Accept-Language":["zh-CN,zh;q=0.9"],"Sec-Fetch-Mode":["cors"],"If-None-Match":["\"01cm\""],"Sec-Ch-Ua-Platform":["\"macOS\""],"Sec-Fetch-Site":["same-origin"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"],"Sec-Fetch-Dest":["manifest"],"Accept-Encoding":["gzip, deflate, br"],"Connection":["keep-alive"],"Sec-Ch-Ua":["\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"97\", \"Chromium\";v=\"97\""]}},"common_log":"172.17.0.1 - - [10/Jan/2022:19:45:04 +0800] \"GET /admin/manifest.json HTTP/1.1\" 304 0","user_id":"","duration":0.000236514,"size":0,"status":304,"resp_headers":{"Server":["Caddy"],"Etag":["\"01cm\""]}}