Skip to content

Caddyfile #2287

Answered by Derkades
kubo6472 asked this question in Q&A
May 26, 2021 · 1 comment
Discussion options

You must be logged in to vote

I have never used caddy before, but according to the documentation it looks like this nginx config

location / {
    try_files $uri $uri/ /index.php?route=$uri&$args;
}

translates to

try_files {path} {path}/ /index.php?route={path}&{query}

maybe? https://caddyserver.com/docs/caddyfile/directives/try_files

No idea how location blocks work in caddy but presumably you do. Next thing would be to deny access to all .tpl and .cache files.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kubo6472
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants