Closed crapthings closed 1 year ago
What does the directory structure of your /www/wwwroot/zz-chatgpt-admin.lvyanhui.com
look like?
And what file did you expect to hit?
What does the directory structure of your
/www/wwwroot/zz-chatgpt-admin.lvyanhui.com
look like? And what file did you expect to hit?
there's default nginx template file
but none of these are accessable and 1.txt doesn't work too
btw zz-chatgpt-api.lvyanhui.com this reverse proxy api works, but file_server is not
still 404 after remove every thing
logging:
logs:
default:
level: DEBUG
storage:
"module": "file_system"
"root": "/data"
apps:
tls:
certificates:
automate:
- zz-chatgpt-admin.lvyanhui.com
http:
servers:
chatgpt:
listen:
- ":443"
routes:
- match:
- host:
- zz-chatgpt-admin.lvyanhui.com
handle:
- handler: file_server
root: "/www/wwwroot/zz-chatgpt-admin.lvyanhui.com"
I recommend writing a Caddyfile to do what you want first, then running caddy adapt --pretty
to see what the JSON for it looks like. It'll give you a better base for your config.