Caddyfile only use URL part after matcher

1. The problem I’m having:

I want to use a root:

`root /xyz/* /var/www/html/hpradio/public/` but the directory shouldn’t be `/var/www/html/hpradio/public/xyz/* it should be on only `var/www/html/hpradio/public/*`. The matcher `/xyz` should be not included.

2. Error messages and/or full log output:


3. Caddy version:

Frankenphp V1.11.2 PHP 8.5 Caddy v2.10.2

4. How I installed and ran Caddy:

frankenphp

a. System environment:

Debian trixie

b. Command:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

c. Service/unit/compose file:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

d. My complete Caddy config:


5. Links to relevant resources:

root and file_server within handle_path?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.