Skip to content

Commit dd504be

Browse files
committed
Update Caddy reverse proxy config to exclude root path for static files
1 parent 9e97ad3 commit dd504be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/best-practices/deployment.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,14 @@ example.com {
471471
472472
@static {
473473
file {path} {path}/
474-
not path *.php
474+
not path / *.php
475475
}
476+
476477
handle @static {
477478
rewrite * {http.matchers.file.relative}
478479
file_server
479480
}
480-
481+
481482
handle {
482483
reverse_proxy localhost:8080
483484
}

0 commit comments

Comments
 (0)