Thanks for your help, but I don’t understand what I’m supposed to do.
I tried this :
(yourls) {
# Add trailing slash for directory requests
@canonicalPath {
file {
try_files {path}/yourls-loader.php
}
not {
path */
}
}
redir @canonicalPath {path}/ 308
# If the requested file does not exist, try index files
try_files {path} {path}/index.php index.php
# Proxy PHP files to the FastCGI responder
@phpFiles {
path *.php
}
reverse_proxy @phpFiles unix//run/php/php7.4-fpm-caddy.sock {
transport fastcgi {
split .php
}
}
file_server
encode zstd gzip
import logs
}
But is was exactly the same as with the try_files I tried earlier. The links were redirected, but the admin is not accessible. What should I do ?
I don’t want to go back to Caddy 1, but at least it worked perfectly there.