caddyserver / caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
https://caddyserver.com
Apache License 2.0
58.76k stars 4.06k forks source link

invalid configuration: unknown try policy first_exist_fallback #6726

Closed crrodriguez closed 7 hours ago

crrodriguez commented 7 hours ago

master branch, this config

http://foo.example.com http://example.local { bind unix//run/caddy/for-cloudflared|0222 root * /srv/www/htdocs php_fastcgi unix//run/php-fpm/php.socket file_server }

results in

Error: loading initial config: loading new config: loading http app module: provision http: server srv0: setting up route handlers: route 0: loading handler modules: position 0: loading module 'subroute': provision http.handlers.subroute: setting up subroutes: route 2: loading matcher modules: module name 'file': http.matchers.file: invalid configuration: unknown try policy first_exist_fallback

francislavoie commented 7 hours ago

Ah sorry, we missed a spot. Fixed in https://github.com/caddyserver/caddy/pull/6727